OSDN Git Service

wait4.c: provide hidden __wait4_nocancel independent of any guards
[uclinux-h8/uClibc.git] / libc / stdlib / system.c
index ec25ead..151a229 100644 (file)
@@ -61,7 +61,7 @@ int __libc_system(const char *command)
        __printf("Waiting for child %d\n", pid);
 #endif
 
-       if (wait4(pid, &wait_val, 0, 0) == -1)
+       if (__wait4_nocancel(pid, &wait_val, 0, 0) == -1)
                wait_val = -1;
 
 out: