From cd2ea4b45183ab1b984a740d32eb588d548eb66b Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Wed, 29 Mar 2017 08:26:40 +0200 Subject: [PATCH] select.2: Give a hint that sets must be reinitialized if using select() in a loop Signed-off-by: Michael Kerrisk --- man2/select.2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/man2/select.2 b/man2/select.2 index eece8502e..5d1d496ea 100644 --- a/man2/select.2 +++ b/man2/select.2 @@ -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