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

DragonFly-2.3.1.566.g0a4a9c master sys/kern kern_descrip.c kern_exec.c kern_exit.c kern_fork.c vfs_aio.c sys/sys filedesc.h


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 2 Jul 2009 12:03:52 -0700 (PDT)

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



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