kernel - Fix cumulative nprocs bug
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 26 Oct 2011 18:13:56 +0000 (11:13 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 26 Oct 2011 18:13:56 +0000 (11:13 -0700)
commit8c2bce6000adc4c0de363231dc39a05aa310c3bd
tree2fe7a1c8d4fbaae52342619fde11b5757b974aa5
parentbf0ecf68a85015324c985f09432f5d3fddfdba61
kernel - Fix cumulative nprocs bug

* nprocs requires atomic ops now that the related code is MPSAFE.

* Fixes issue reported w/pkgbox64 of the machine running out of processes
  unexpectedly.

* Also move a wakeup() to outside p->p_token to improve concurrency and
  other minor adjustments.
sys/kern/kern_exit.c
sys/kern/kern_fork.c