kernel - Fix coredump race with threaded processes
commit0001762fb8738e5cf582bcff6922d7612db14853
authorMatthew Dillon <dillon@apollo.backplane.com>
Mon, 29 Aug 2016 18:15:51 +0000 (29 11:15 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Mon, 29 Aug 2016 18:15:51 +0000 (29 11:15 -0700)
tree695f71637504cf424161b39e939607ca0bda9b61
parent8d6a3ef8ba59c6cb8926abc226d8b91100da513b
kernel - Fix coredump race with threaded processes

* Fix an issue where a threaded process trying to coredump could race
  and cause some threads to get stuck in tstop() when the main thread
  is trying to finally exit.  This creates an unkillable blocked process.

Reported-by: zrj, marino
sys/kern/kern_exit.c
sys/kern/kern_sig.c
sys/kern/kern_synch.c