Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] linux-nat.c
@ 2006-09-14  3:58 Nick Roberts
  2006-09-16  4:03 ` Daniel Jacobowitz
  0 siblings, 1 reply; 2+ messages in thread
From: Nick Roberts @ 2006-09-14  3:58 UTC (permalink / raw)
  To: gdb-patches


On nickrob-async-20060513-branch I get a zombie process each time I start the
inferior.  It doesn't happen for me on mainline but the patch below seems to
belong there anyway.

-- 
Nick                                           http://www.inet.net.nz/~nickrob


2006-09-14  Nick Roberts  <nickrob@snap.net.nz>

	* linux-nat.c (linux_test_for_tracefork): Don't leave zombie process.

*** linux-nat.c	24 Jul 2006 09:21:01 +1200	1.49
--- linux-nat.c	14 Sep 2006 15:48:58 +1200	
***************
*** 276,281 ****
--- 276,282 ----
  	  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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] linux-nat.c
  2006-09-14  3:58 [PATCH] linux-nat.c Nick Roberts
@ 2006-09-16  4:03 ` Daniel Jacobowitz
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel Jacobowitz @ 2006-09-16  4:03 UTC (permalink / raw)
  To: Nick Roberts; +Cc: gdb-patches

On Thu, Sep 14, 2006 at 03:55:35PM +1200, Nick Roberts wrote:
> 
> On nickrob-async-20060513-branch I get a zombie process each time I start the
> inferior.  It doesn't happen for me on mainline but the patch below seems to
> belong there anyway.

OK, thanks.

Normally the first process gets killed, and that leaves the second one
belonging to init, which reaps it.  Dunno what else might be wrong.

-- 
Daniel Jacobowitz
CodeSourcery


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-09-16  4:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-14  3:58 [PATCH] linux-nat.c Nick Roberts
2006-09-16  4:03 ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox