projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d51ca89
)
(linux_test_for_tracefork): Don't leave zombie
author
Nick Roberts
<nickrob@snap.net.nz>
Sat, 16 Sep 2006 09:48:12 +0000
(09:48 +0000)
committer
Nick Roberts
<nickrob@snap.net.nz>
Sat, 16 Sep 2006 09:48:12 +0000
(09:48 +0000)
process.
gdb/linux-nat.c
patch
|
blob
|
history
diff --git
a/gdb/linux-nat.c
b/gdb/linux-nat.c
index d9e5726218119cd7160f741436ebaea26498c6c2..584bffa6c5e4e9acc5fc6f39bf0ec59c4514f3eb 100644
(file)
--- 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