remove or make static various unused __-prefixed symbols
[musl] / src / process / system.c
index f5b7b49..9135b81 100644 (file)
@@ -1,5 +1,5 @@
 #include <unistd.h>
-#include <fcntl.h>
+#include <stdlib.h>
 #include <signal.h>
 #include <sys/wait.h>
 #include <spawn.h>
@@ -14,7 +14,7 @@ int system(const char *cmd)
        pid_t pid;
        sigset_t old, reset;
        struct sigaction sa = { .sa_handler = SIG_IGN }, oldint, oldquit;
-       int status = 0x7f00, ret;
+       int status = -1, ret;
        posix_spawnattr_t attr;
 
        pthread_testcancel();