This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/19494] hang killing unfollowed fork children
- From: "palves at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Tue, 19 Jan 2016 16:47:59 +0000
- Subject: [Bug gdb/19494] hang killing unfollowed fork children
- Auto-submitted: auto-generated
- References: <bug-19494-4717 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=19494
--- Comment #2 from Pedro Alves <palves at redhat dot com> ---
Specifically, this:
static void
linux_nat_kill (struct target_ops *ops)
{
struct target_waitstatus last;
ptid_t last_ptid;
int status;
/* If we're stopped while forking and we haven't followed yet,
kill the other task. We need to do this first because the
parent will be sleeping if this is a vfork. */
get_last_target_status (&last_ptid, &last);
if (last.kind == TARGET_WAITKIND_FORKED
|| last.kind == TARGET_WAITKIND_VFORKED)
{
ptrace (PT_KILL, ptid_get_pid (last.value.related_pid), 0, 0);
wait (&status);
--
You are receiving this mail because:
You are on the CC list for the bug.