Make wait*() behave the same as it did before we moved TSTOP handling
authorMatthew Dillon <dillon@dragonflybsd.org>
Wed, 28 Dec 2005 19:13:34 +0000 (19:13 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Wed, 28 Dec 2005 19:13:34 +0000 (19:13 +0000)
commit6d5b152edfefde22d0f3a0f2cc3cdd9b31a9c56d
treecb6e645b9ef6dbcdb4c400383f7d90e8086459b0
parent4a865848833af059cc18817322f506ac22f4d23b
Make wait*() behave the same as it did before we moved TSTOP handling
out of tsleep().  The behavior was that if both parent and child are
stopped together (aka via ^Z), and then resumed together, and the parent
is doing a WUNTRACED wait*() on the child, the parent will only see the
resume.  Without this little hack the parent will see both the STOP (after
the child has resumed since the parent was stopped too!), and then the
CONT.

It is unclear whether this is mandated by standards or not, but for now
we are going to maintain backwards compatibility.

Reported-by: YONETANI Tomokazu <qhwt+dfly@les.ath.cx>
sys/kern/kern_exit.c