fix accidentlly-external cmp symbol introduced with catgets
[musl] / src / process / system.c
index 4232bef..5af59b8 100644 (file)
@@ -1,17 +1,10 @@
 #include <unistd.h>
-#include <fcntl.h>
+#include <stdlib.h>
 #include <signal.h>
 #include <sys/wait.h>
 #include <spawn.h>
 #include <errno.h>
 #include "pthread_impl.h"
-#include "libc.h"
-
-static void dummy_0()
-{
-}
-weak_alias(dummy_0, __acquire_ptc);
-weak_alias(dummy_0, __release_ptc);
 
 extern char **__environ;
 
@@ -20,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();