select.2: Give a hint that sets must be reinitialized if using select() in a loop

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2017-03-29 08:26:40 +02:00
parent 47da6ce7fd
commit cd2ea4b451
1 changed files with 3 additions and 0 deletions

View File

@ -147,6 +147,9 @@ will be watched for exceptional conditions.
On exit, each of the file descriptor sets is modified in place
to indicate which file descriptors actually changed status.
(Thus, if using
.BR select ()
within a loop, the sets must be reinitialized before each call.)
Each of the three file descriptor sets may be specified as NULL
if no file descriptors are to be watched for the corresponding class