Subject: CVS commit: src/sys
To: None <source-changes@NetBSD.org>
From: Andrew Doran <ad@netbsd.org>
List: source-changes
Date: 02/16/2007 00:39:16
Module Name:	src
Committed By:	ad
Date:		Fri Feb 16 00:39:16 UTC 2007

Modified Files:
	src/sys/compat/irix: irix_signal.c
	src/sys/compat/svr4: svr4_misc.c
	src/sys/kern: kern_exit.c
	src/sys/sys: proc.h

Log Message:
proc_free() was returning a NULL rusage pointer to wait() when a traced
process was reparented. Change proc_free() to copy the rusage to a buffer
on the stack if required, so it can be passed both to the debugger and
to the real parent process.

Fixes kern/35582 (kernel panics with gdb).


To generate a diff of this commit:
cvs rdiff -r1.35 -r1.36 src/sys/compat/irix/irix_signal.c
cvs rdiff -r1.122 -r1.123 src/sys/compat/svr4/svr4_misc.c
cvs rdiff -r1.165 -r1.166 src/sys/kern/kern_exit.c
cvs rdiff -r1.235 -r1.236 src/sys/sys/proc.h

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