diff options
author | Nick Roberts <nickrob@snap.net.nz> | 2006-09-16 09:48:12 +0000 |
---|---|---|
committer | Nick Roberts <nickrob@snap.net.nz> | 2006-09-16 09:48:12 +0000 |
commit | c59aa9025c5f1b6431e6e97664e965b74e690371 (patch) | |
tree | 4b79a46856a32300eefcc0cec40c49f419c76f61 | |
parent | fc54956f412f5672ae95651c242121db76ab9cfe (diff) | |
download | gdb-c59aa9025c5f1b6431e6e97664e965b74e690371.tar.gz |
(linux_test_for_tracefork): Don't leave zombie
process.
-rw-r--r-- | gdb/linux-nat.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 |