mirror of https://github.com/mkerrisk/man-pages
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 <mtk.manpages@gmail.com>
This commit is contained in:
parent
c9a275a703
commit
82cf8e8850
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue