rename i386 exp.s to exp_ld.s
[oweals/musl.git] / src / process / system.c
index 8cbdda060d0275c7fd6480b2be676b7c25945d3e..5af59b809f18d309e240d057177af6788a3b54be 100644 (file)
@@ -5,7 +5,6 @@
 #include <spawn.h>
 #include <errno.h>
 #include "pthread_impl.h"
-#include "libc.h"
 
 extern char **__environ;
 
@@ -14,7 +13,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();