]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - arch/um/os-Linux/process.c
uml: stop gdb from deleting breakpoints when running UML
[karo-tx-linux.git] / arch / um / os-Linux / process.c
index 37781db4cecad92a5849bb86d7fca6a3812e627e..bda5c3150d6c798254dd974e7780286971c8f6d7 100644 (file)
@@ -101,7 +101,7 @@ void os_kill_process(int pid, int reap_child)
 {
        kill(pid, SIGKILL);
        if (reap_child)
-               CATCH_EINTR(waitpid(pid, NULL, 0));
+               CATCH_EINTR(waitpid(pid, NULL, __WALL));
 }
 
 /* This is here uniquely to have access to the userspace errno, i.e. the one
@@ -130,7 +130,7 @@ void os_kill_ptraced_process(int pid, int reap_child)
        ptrace(PTRACE_KILL, pid);
        ptrace(PTRACE_CONT, pid);
        if (reap_child)
-               CATCH_EINTR(waitpid(pid, NULL, 0));
+               CATCH_EINTR(waitpid(pid, NULL, __WALL));
 }
 
 /* Don't use the glibc version, which caches the result in TLS. It misses some