Subject: CVS commit: src/sys/kern
To: None <source-changes@NetBSD.org>
From: matthew green <mrg@netbsd.org>
List: source-changes
Date: 10/22/2006 20:48:45
Module Name:	src
Committed By:	mrg
Date:		Sun Oct 22 20:48:45 UTC 2006

Modified Files:
	src/sys/kern: kern_sig.c

Log Message:
avoid a problem in kpsignal2() holding sched_lock while wanting to call
pool_get().  pre-allocate the ksiginfo_t before taking sched_lock and
use it if necessary, or freeing it if it is unused.

rename ksiginfo_{get,put}() to ksiginfo_{dequeue,queue}() (idea from chuq.)

this fixes PR#32962.  thanks to christos, chuq and go for help/ideas.


To generate a diff of this commit:
cvs rdiff -r1.230 -r1.231 src/sys/kern/kern_sig.c

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