Skip to content

Commit 87e4174

Browse files
committed
on close() returning right away
1 parent 610aed9 commit 87e4174

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

file-api.tex

+3
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,9 @@
305305
In such case the error code should be used only for diagnostics. There is not
306306
point in retrying because the descriptor might have been allocated for something
307307
else in the meantime.
308+
\item Usually, esp. on local file systems, \texttt{close} returns right away,
309+
however there are situations when \texttt{close} will only return after an
310+
event or certain time, e.g. for TCP sockets with certain options set.
308311
\item If you forget to close file descriptors when you no longer need them,
309312
and it is a long living process, a daemon perhaps, depending on the system
310313
configuration you may hit memory starvation as the system memory will be filled

0 commit comments

Comments
 (0)