dns response handling: don't treat too many addresses as an error
[musl] / src / process / system.c
index f5b7b49..5af59b8 100644 (file)
@@ -1,11 +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"
 
 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();