git: kernel - Fix system lockup w/ kqueue based select/poll due

看板DFBSD_commit作者時間15年前 (2010/08/22 05:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit 34e191bd0d5b8cb3e96c427a1d2f32bd96fc0aba Author: Matthew Dillon <dillon@apollo.backplane.com> Date: Sat Aug 21 14:00:49 2010 -0700 kernel - Fix system lockup w/ kqueue based select/poll due to dup2() * dup2() was not calling knote_fdclose() on the original descriptor being replaced * fdfree() (called by exit) was not cleaning out knotes either, though exit*() probably took care of it already when it closed the descriptors. * Assert that a file has no knotes on the last fdrop(). Reported-by: everyone + lentferj + alexh + swildner + Studbolt Summary of changes: sys/kern/kern_descrip.c | 11 +++++++++++ sys/kern/kern_event.c | 28 ++++++++++------------------ 2 files changed, 21 insertions(+), 18 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/34e191bd0d5b8cb3e96c427a1d2f32bd96fc0aba -- DragonFly BSD source repository
文章代碼(AID): #1CS4NMAO (DFBSD_commit)