9p(2): document the filedescriptor sharing behaviour of postmountsrv()
This commit is contained in:
parent
a609c1a2f8
commit
bc1212faf2
1 changed files with 13 additions and 6 deletions
19
sys/man/2/9p
19
sys/man/2/9p
|
@ -202,14 +202,21 @@ or
|
|||
(see
|
||||
.IR thread (2)),
|
||||
using the
|
||||
.BR RFFDG ,
|
||||
.BR RFNOTEG ,
|
||||
.BR RFNAMEG ,
|
||||
.B RFNOTEG
|
||||
and
|
||||
.BR RFMEM
|
||||
.B RFNAMEG
|
||||
flags.
|
||||
The child process
|
||||
calls
|
||||
.IP
|
||||
The child process then waits for the parent to copy its
|
||||
file descripor table via
|
||||
.I rfork
|
||||
using
|
||||
.B RFFDG
|
||||
flag. This way, the service loop will share the original
|
||||
file descriptor table with previously created child
|
||||
processes of the caller.
|
||||
.IP
|
||||
The child process then calls
|
||||
.IB close( s -> srvfd )
|
||||
and then
|
||||
.IB srv( s ) \fR;
|
||||
|
|
Loading…
Reference in a new issue