From a5688441599dd863e33017c4653385d53a0050c4 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Sat, 22 Jul 2017 09:44:17 +0200 Subject: [PATCH] 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. Signed-off-by: Michael Kerrisk --- man2/select_tut.2 | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/man2/select_tut.2 b/man2/select_tut.2 index ebd3f58e4..01d79adfd 100644 --- a/man2/select_tut.2 +++ b/man2/select_tut.2 @@ -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).