From 97725dc4f67140bd0b914a4cb9b92fe94799509c Mon Sep 17 00:00:00 2001 From: Nick Roberts Date: Sat, 16 Sep 2006 09:48:12 +0000 Subject: [PATCH] (linux_test_for_tracefork): Don't leave zombie process. --- gdb/linux-nat.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c index d9e5726218..584bffa6c5 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 -- 2.34.1