History

20091101-2150

forsyth committed 17 years ago

Commit 400101d1 parent 0aaf75e1 file · +21 −8Browse files

Unified · Split

man/2/sys-file2chan+21−8
@@ -120,20 +120,33 @@ is an empty or · 119 unmodified lines
120120 .B nil
121121 string or an explanation of the problem.
122122 .PP
123−If the client closes the file for reading (writing), the server will receive a
124−.B read
125−.RB ( write )
126−message with a
127−.B nil
128−.I rc
129−.BI ( wc )\f1.
130−The server can use these signals to determine when to stop processing.
131123 The
132124 .I fid
133125 received by the server can be used to manage the multiplexing of multiple
134126 active clients sharing a single file; see
135127 .IR intro (5)
136128 for details.
129+Each distinct
130+open of the file will yield a distinct
131+.IR fid ,
132+unique to that open, which will appear in the read and write
133+messages corresponding to reads and writes on that open instance of the file.
134+.PP
135+When the client closes the file,
136+the server will be sent a
137+.B read
138+message with a nil
139+.IR rc ,
140+then a
141+.B write
142+message with a nil
143+.IR wc .
144+A server typically ignores the former and uses the latter as a signal to stop processing for the given client
145+(more precisely, the given
146+.IR fid ).
147+Note that the
148+.I fid
149+can later be re-used by another client.
137150 .SH SOURCE
138151 .B /emu/port/devsrv.c
139152 .br