summaryrefslogtreecommitdiff
path: root/sys/man/2
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2020-03-08 14:49:34 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2020-03-08 14:49:34 +0100
commitbc1212faf2f23ee5e846e6322edd86c1af481aab (patch)
tree1152fe96ec082021bb1486be9bbdae979ca9d47f /sys/man/2
parenta609c1a2f8d58d21727c13970725445ce4d2f6fa (diff)
9p(2): document the filedescriptor sharing behaviour of postmountsrv()
Diffstat (limited to 'sys/man/2')
-rw-r--r--sys/man/2/9p19
1 files changed, 13 insertions, 6 deletions
diff --git a/sys/man/2/9p b/sys/man/2/9p
index c1c75fd61..da521636d 100644
--- a/sys/man/2/9p
+++ b/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;