kib ccad2ebfb2 Several threads in a process may do vfork() simultaneously. Then, all
parent threads sleep on the parent' struct proc until corresponding
child releases the vmspace. Each sleep is interlocked with proc mutex of
the child, that triggers assertion in the sleepq_add(). The assertion
requires that at any time, all simultaneous sleepers for the channel use
the same interlock.

Silent the assertion by using conditional variable allocated in the
child. Broadcast the variable event on exec() and exit().

Since struct proc * sleep wait channel is overloaded for several
unrelated events, I was unable to remove wakeups from the places where
cv_broadcast() is added, except exec().

Reported and tested by:	ganbold
Suggested and reviewed by:	jhb
MFC after:	2 week
2008-12-05 20:50:24 +00:00
..
2008-11-29 14:32:14 +00:00
2008-12-02 02:32:13 +00:00
2008-09-23 14:25:56 +00:00
2008-08-03 21:07:19 +00:00
2008-11-27 04:40:37 +00:00
2008-09-22 10:37:02 +00:00
2008-05-12 06:42:06 +00:00
2008-05-23 04:06:49 +00:00
2007-12-14 21:30:51 +00:00
2008-07-27 21:45:20 +00:00
2008-11-17 23:57:40 +00:00
2008-07-18 07:10:33 +00:00
2008-11-04 10:58:02 +00:00
2008-11-29 14:32:14 +00:00
2008-11-29 12:40:14 +00:00