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

git: kernel - Fix kqueue race with NOTE_EXIT


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 7 Dec 2011 18:39:49 -0800 (PST)

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



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