git: kernel - Fix signal races against exiting processes
dillon at crater.dragonflybsd.org
Tue Dec 13 19:41:23 PST 2011
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Tue Dec 13 19:37:04 2011 -0800
kernel - Fix signal races against exiting processes
* Fix a panic which can occur when a signal races an exiting process.
* Fix an incorrect status return from the wait*() system calls which
can sometimes occur when a SIGTSTP or other signal races an exit.
Do not allow the signal status to overwrite the exit value.
* Fix a race where the kill() system call can return ESRCH when a signal
races an exiting process which has already entered the zombie state.
Return success in this case and silently drop the signal.
Summary of changes:
sys/kern/kern_sig.c | 66 ++++++++++++++++++++++++++++++---------------------
1 files changed, 39 insertions(+), 27 deletions(-)
DragonFly BSD source repository
More information about the Commits