git: kernel - Fix kqueue race with NOTE_EXIT

Matthew Dillon dillon at crater.dragonflybsd.org
Wed Dec 7 18:40:53 PST 2011


commit 20bace435bb4c79cfbae0246a079a346626f1fbf
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Wed Dec 7 18:34:01 2011 -0800

    kernel - Fix kqueue race with NOTE_EXIT
    
    * Fix a kqueue race where the process receiving a NOTE_EXIT can go
      away while the NOTE_EXIT is being delivered.
    
    * Add a required PHOLD/PRELE since knote_remove() can block.
    
    * Properly return on-zero if KN_DETACHED is set at the end of knote_release()
      so the caller knows to restart the list scan.
    
    Reported-by: sephe

Summary of changes:
 sys/kern/kern_event.c |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/20bace435bb4c79cfbae0246a079a346626f1fbf


-- 
DragonFly BSD source repository





More information about the Commits mailing list