aboutsummaryrefslogtreecommitdiff
path: root/gdb/linux-nat.c
diff options
context:
space:
mode:
authorNick Roberts <nickrob@snap.net.nz>2006-09-16 09:48:12 +0000
committerNick Roberts <nickrob@snap.net.nz>2006-09-16 09:48:12 +0000
commit97725dc4f67140bd0b914a4cb9b92fe94799509c (patch)
tree7f489782341502658845524fd6a18c769a330b02 /gdb/linux-nat.c
parentd51ca893c35160c05de560997aae54520fbf96eb (diff)
downloadgdb-97725dc4f67140bd0b914a4cb9b92fe94799509c.zip
gdb-97725dc4f67140bd0b914a4cb9b92fe94799509c.tar.gz
gdb-97725dc4f67140bd0b914a4cb9b92fe94799509c.tar.bz2
(linux_test_for_tracefork): Don't leave zombie
process.
Diffstat (limited to 'gdb/linux-nat.c')
-rw-r--r--gdb/linux-nat.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c
index d9e5726..584bffa 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