git: kernel - Fix kqueue race with NOTE_EXIT

看板DFBSD_commit作者時間14年前 (2011/12/28 02:04), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
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
文章代碼(AID): #1E-WZ7qH (DFBSD_commit)