git: kernel - Fix signal races against exiting processes

Matthew Dillon dillon at crater.dragonflybsd.org
Tue Dec 13 19:41:23 PST 2011


commit e6426055a7e9e7c1758b2502d30bd71859aa4c62
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(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/e6426055a7e9e7c1758b2502d30bd71859aa4c62


-- 
DragonFly BSD source repository





More information about the Commits mailing list