kernel - Fix alarm() timer race against exit
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 8 Dec 2011 02:44:15 +0000 (18:44 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 8 Dec 2011 02:44:15 +0000 (18:44 -0800)
commita471eac535f632f45345fec35628581b8931e2b1
tree14a370a3fee5f0576cea72d7dec7a542465524fa
parentbb4ae18c2a7cec1fd8c3877a324a361b7f4cba72
kernel - Fix alarm() timer race against exit

* Stop the callout synchronously to ensure that any pending alarm timeout
  is completely removed before we allow a process to exit.

* Add a required PHOLD() to the relaitexpire() function.
sys/kern/kern_exit.c
sys/kern/kern_time.c
sys/kern/kern_timeout.c