davidxu 02615ff23a Fix a race condition between kern_wait() and thread_stopped().
Problem is in kern_wait(), parent process steps through children list,
once a child process is skipped, and later even if the child is stopped,
parent process still sleeps in msleep(), the race happens if parent
masked SIGCHLD.

Submitted by : Peter Edwards peadar.edwards at gmail dot com
MFC after    : 4 days
2005-04-19 08:07:28 +00:00
..
2005-03-01 17:44:34 +00:00
2005-02-10 12:23:29 +00:00
2005-04-12 05:45:58 +00:00
2005-03-26 20:04:28 +00:00
2005-04-06 10:14:13 +00:00
2005-03-14 06:51:29 +00:00
2005-03-01 17:44:34 +00:00
2005-03-09 11:50:55 +00:00
2005-04-18 11:51:10 +00:00
2005-02-10 12:17:48 +00:00