Subject: CVS commit: src/sys/kern
To: None <source-changes@NetBSD.org>
From: Mindaugas Rasiukevicius <rmind@netbsd.org>
List: source-changes
Date: 08/15/2007 02:50:41
Module Name:	src
Committed By:	rmind
Date:		Wed Aug 15 02:50:41 UTC 2007

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

Log Message:
sys__lwp_suspend: Handle the possible problem when target LWP might exit via
lwp_exit() before suspending.  In such case, LWP might be already freed after
cv_wait_sig() and checking the list of LWPs via lwp_find() is necessary.

Possible problem catched by Andrew Doran.


To generate a diff of this commit:
cvs rdiff -r1.24 -r1.25 src/sys/kern/sys_lwp.c

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