DragonFly-2.3.1.566.g0a4a9c master sys/kern kern_descrip.c kern_

看板DFBSD_commit作者時間16年前 (2009/07/03 03:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit 0a4a9c77c8050921de07a2085cd6de5fe83db343 Author: Matthew Dillon <dillon@apollo.backplane.com> Date: Thu Jul 2 12:02:17 2009 -0700 file descriptor enumeration - Fix races Add a soft refrence count, fd_softrefs, to struct filedesc. This is used to prevent the filedesc from being ripped out from under a file descriptor scan via the allproc scan, which is used to enumerate file descriptors and also used by the revoke code. Reported-by: hasso Summary of changes: sys/kern/kern_descrip.c | 63 +++++++++++++++++++++++++++++++++++++++++----- sys/kern/kern_exec.c | 3 +- sys/kern/kern_exit.c | 3 +- sys/kern/kern_fork.c | 6 +--- sys/kern/vfs_aio.c | 3 +- sys/sys/filedesc.h | 3 +- 6 files changed, 63 insertions(+), 18 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/0a4a9c77c8050921de07a2085cd6de5fe83db343 -- DragonFly BSD source repository
文章代碼(AID): #1AJGiu00 (DFBSD_commit)