[libc-commits] [libc] [libc] Implement system function (PR #211672)
Jeff Bailey via libc-commits
libc-commits at lists.llvm.org
Sat Aug 8 05:34:13 PDT 2026
================
@@ -86,7 +88,7 @@ LLVM_LIBC_FUNCTION(int, system, (const char *command)) {
// Error checking isn't helpful since this is the forked process, so we
// can't set errno. All we can meaningfully do is exit with status 127.
- linux_syscalls::execle("/bin/sh", "sh", "-c", command, nullptr, environ);
+ linux_syscalls::execle(SHELL_PATH, "sh", "-c", command, 0, environ);
----------------
kaladron wrote:
NEver mind. It helps if I remind myself of the whole thread first. =)
https://github.com/llvm/llvm-project/pull/211672
More information about the libc-commits
mailing list