DragonFly commits List (threaded) for 2011-12
git: kernel - Fix signal races against exiting processes
Author: Matthew Dillon <email@example.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