mirror of https://github.com/mkerrisk/man-pages
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:
parent
377ec1fda7
commit
a568844159
|
@ -395,18 +395,22 @@ The buffers in the example below are 1024 bytes although they could
|
|||
easily be made larger.
|
||||
.TP
|
||||
7.
|
||||
The functions
|
||||
Calls to
|
||||
.BR read (2),
|
||||
.BR recv (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
|
||||
.BR send (2)
|
||||
as well as the
|
||||
.BR select ()
|
||||
call can return \-1 with
|
||||
.I errno
|
||||
set to \fBEINTR\fP,
|
||||
or with
|
||||
can fail with
|
||||
.I errno
|
||||
set to \fBEAGAIN\fP (\fBEWOULDBLOCK\fP).
|
||||
These results must be properly managed (not done properly above).
|
||||
|
|
Loading…
Reference in New Issue