kernel - Fix long-standing vfork/exec bug
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 19 Oct 2011 15:19:01 +0000 (08:19 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 19 Oct 2011 15:19:01 +0000 (08:19 -0700)
commitee934fe9e6c46439debd01c33ade51aeb9d46060
tree8cce047386f4bee69b86afacb1b1de2a17ab6287
parent1f29f2c5bd3fad36d01bbd1000d484cb8d45d851
kernel - Fix long-standing vfork/exec bug

* Fix an issue where the parent process can get stuck in the "ppwait"
  state due to a tsleep/wakeup race with its child.

* This bug was present but masked by other tokens prior to a few patches
  ago.  With those tokens now gone this bug reared its face.
sys/kern/kern_fork.c