git: kernel - kqfilter - Fix edge-case lockup in kern_kevent()

看板DFBSD_commit作者時間15年前 (2010/07/20 06:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit 62405ecc9078dc3f5e679184fd53baf760eef456 Author: Matthew Dillon <dillon@apollo.backplane.com> Date: Fri Jul 9 14:08:23 2010 -0700 kernel - kqfilter - Fix edge-case lockup in kern_kevent() * An edge case where the marker can wind up at the head of a non-empty event list containing only spurious events. This causes an endless loop to be entered because only the sleep case moves the marker. * If no events were processed and we loop the marker is now moved, fixing the problem. Summary of changes: sys/kern/kern_event.c | 36 +++++++++++++++++++++++++++++++----- 1 files changed, 31 insertions(+), 5 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/62405ecc9078dc3f5e679184fd53baf760eef456 -- DragonFly BSD source repository
文章代碼(AID): #1CHD9ftf (DFBSD_commit)