Subject: CVS commit: syssrc/sys/kern
To: None <source-changes@netbsd.org>
From: Jaromir Dolecek <jdolecek@netbsd.org>
List: source-changes
Date: 11/28/2002 23:41:30
Module Name:	syssrc
Committed By:	jdolecek
Date:		Thu Nov 28 21:41:30 UTC 2002

Modified Files:
	syssrc/sys/kern: kern_exit.c

Log Message:
exit1(): make sure that, if orphaned child is being traced, it's
reparented back to original parent before it's killed.
This makes the original parent aware that the child has exited if
the debugger failed to wait() on the debugged zombie before exiting.
Since we clear tracing flags before killing the child, the reparenting
logic in wait4() wouldn't be triggered, so it's necessary to do it here.

Problem reported and fix provided in kern/14443 by David Sainty.


To generate a diff of this commit:
cvs rdiff -r1.103 -r1.104 syssrc/sys/kern/kern_exit.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.