From: Nick Roberts Date: Sat, 16 Sep 2006 09:48:12 +0000 (+0000) Subject: (linux_test_for_tracefork): Don't leave zombie X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=97725dc4f67140bd0b914a4cb9b92fe94799509c;p=binutils-gdb.git (linux_test_for_tracefork): Don't leave zombie process. --- diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c index d9e57262181..584bffa6c5e 100644 --- a/gdb/linux-nat.c +++ b/gdb/linux-nat.c @@ -276,6 +276,7 @@ linux_test_for_tracefork (int original_pid) ret = ptrace (PTRACE_KILL, second_pid, 0, 0); if (ret != 0) warning (_("linux_test_for_tracefork: failed to kill second child")); + my_waitpid (second_pid, &status, 0); } } else