From 82cf8e88505d40cfa7e2c67d71563dc5ae6edd57 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Tue, 18 Feb 2020 10:10:01 +0100 Subject: [PATCH] select_tut.2: RETURN VALUE: defer to select(2) Defer to select(2), rather than repeating the information in this page. Signed-off-by: Michael Kerrisk --- man2/select_tut.2 | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/man2/select_tut.2 b/man2/select_tut.2 index f608a1f2f..74259266c 100644 --- a/man2/select_tut.2 +++ b/man2/select_tut.2 @@ -316,23 +316,8 @@ then the sets must be reinitialized before each call. .\" way to sleep the process with subsecond precision by using the timeout. .\" (See further on.) .SH RETURN VALUE -On success, -.BR select () -returns the total number of file descriptors -still present in the file descriptor sets. -.PP -If -.BR select () -timed out, then the return value will be zero. -The file descriptors set should be all -empty (but may not be on some systems). -.PP -A return value of \-1 indicates an error, with \fIerrno\fP being -set appropriately. -In the case of an error, the contents of the returned sets and -the \fIstruct timeout\fP contents are undefined and should not be used. -.BR pselect () -however never modifies \fIntimeout\fP. +See +.BR select (2). .SH NOTES Generally speaking, all operating systems that support sockets also support