select_tut.2: Clarify an ambiguity with respect to select() and EAGAIN

See https://bugzilla.kernel.org/show_bug.cgi?id=196345

Reported-by: Sergey Z. <zhurxx@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2017-07-22 09:44:17 +02:00
parent 377ec1fda7
commit a568844159
1 changed files with 11 additions and 7 deletions

View File

@ -395,18 +395,22 @@ The buffers in the example below are 1024 bytes although they could
easily be made larger. easily be made larger.
.TP .TP
7. 7.
The functions Calls to
.BR read (2), .BR read (2),
.BR recv (2), .BR recv (2),
.BR write (2), .BR write (2),
.BR send (2),
and
.BR select ()
can fail with the error
\fBEINTR\fP,
and calls to
.BR read (2),
.BR recv (2)
.BR write (2),
and and
.BR send (2) .BR send (2)
as well as the can fail with
.BR select ()
call can return \-1 with
.I errno
set to \fBEINTR\fP,
or with
.I errno .I errno
set to \fBEAGAIN\fP (\fBEWOULDBLOCK\fP). set to \fBEAGAIN\fP (\fBEWOULDBLOCK\fP).
These results must be properly managed (not done properly above). These results must be properly managed (not done properly above).