cvs commit: src/sys/sys filedesc.h src/sys/kern kern_descrip.c
kern_exec.c kern_fork.c
Poul-Henning Kamp
phk at FreeBSD.org
Mon Dec 13 23:20:05 PST 2004
phk 2004-12-14 07:20:03 UTC
FreeBSD src repository
Modified files:
sys/sys filedesc.h
sys/kern kern_descrip.c kern_exec.c kern_fork.c
Log:
Add new function fdunshare() which encapsulates the necessary light magic
for ensuring that a process' filedesc is not shared with anybody.
Use it in the two places which previously had private implmentations.
This collects all fd_refcnt handling in kern_descrip.c
Revision Changes Path
1.266 +19 -0 src/sys/kern/kern_descrip.c
1.260 +1 -10 src/sys/kern/kern_exec.c
1.248 +2 -12 src/sys/kern/kern_fork.c
1.67 +1 -0 src/sys/sys/filedesc.h
More information about the cvs-all
mailing list