DragonFly BSD
DragonFly commits List (threaded) for 2011-12
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: kernel - Fix signal races against exiting processes


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 13 Dec 2011 19:40:09 -0800 (PST)

commit e6426055a7e9e7c1758b2502d30bd71859aa4c62
Author: Matthew Dillon <dillon@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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]