[patch] Workaround for 10970, 12702, avoid calling waitpid

Jan Kratochvil jan.kratochvil@redhat.com
Fri May 27 17:04:00 GMT 2011


On Wed, 18 May 2011 20:53:02 +0200, Jan Kratochvil wrote:
> gdb/
> 2011-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
> 	    Doug Evans  <dje@google.com>
> 
> 	Fix PR 10970, PR 12702.
> 	* linux-nat.c (linux_lwp_is_zombie): New function.
> 	(wait_lwp): Initialize status.  New variable prev_mask.  Block signals.
> 	Check for linux_lwp_is_zombie.  Use WNOHANG and sigsuspend.
> 
> testsuite/
> 2011-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
> 
> 	* gdb.threads/leader-exit.c: New file.
> 	* gdb.threads/leader-exit.exp: New file.

Checked in:
	http://sourceware.org/ml/gdb-cvs/2011-05/msg00228.html


Thanks,
Jan



More information about the Gdb-patches mailing list