Subject: CVS commit: src/sys/kern
To: None <source-changes@netbsd.org>
From: Nathan J Williams <nathanw@netbsd.org>
List: source-changes
Date: 02/04/2003 01:31:43
Module Name:	src
Committed By:	nathanw
Date:		Mon Feb  3 23:31:43 UTC 2003

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

Log Message:
In sa_yield(), sleep on a p->p_sa->sa_idle instead of just p, to avoid
being woken up by the the reaper when a child process is cleaned up
(SIGCHLD will still cause this to run, and threads actually waiting
for the child will still see the wakeup, of course).

Should fix various spurious wakeups that manifest as assertion
failures in pthread__idle().


To generate a diff of this commit:
cvs rdiff -r1.4 -r1.5 src/sys/kern/kern_sa.c

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