select.2: Mention the fd size limitation early and refer to poll
PATCH 1/1 select.2: Mention the fd size limitation early and refer to poll
That is because the serious limitation of select imposing a limit on the values a file descriptor can have, is mentioned too late in the documentation in the notes section. The manpage should warn and refer to poll as soon as possible.
(patch attached)
From ca3f1dcc2281ff7bdd14f80a758b31239571d5cd Mon Sep 17 00:00:00 2001
From: Nikos Mavrogiannopoulos <[email protected]>
Date: Fri, 29 Jan 2016 10:03:45 +0100
Subject: [PATCH] select.2: Mention the fd size limitation early and refer to
poll
That is because the serious limitation of select imposing a limit on the values a file descriptor can have, is mentioned too late in the documentation in the notes section. The manpage should warn and refer to poll as soon as possible.
--- man2/select.2 | 7 +++++++ 1 file changed, 7 insertions(+)
man2/select.2 +7 -0
@@ -91,6 +91,13 @@ perform a corresponding I/O operation (e.g., without blocking, or a sufficiently small .BR write (2)). .PP +The file descriptors +.BR select () +can monitor cannot be larger than +.B FD_SETSIZE. +.BR poll (2), +does not have this limitation. +.PP The operation of .BR select () and
Signature · 1 line
2.5.1
Hello Nikos,
Quoted 4 lines · Nikos Mavrogiannopoulos
That is because the serious limitation of select imposing a limit on the values a file descriptor can have, is mentioned too late in the documentation in the notes section. The manpage should warn and refer to poll as soon as possible.
Agreed. I merged your patch, and in fact even expanded the details quite a bit to emphasize this issue with (glibc) select()/pselect().
Quoted 1 line
(patch attached)
Thanks. (But inline patches are much easier to deal with...)
Cheers,
Michael
Signature · 7 lines
Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/ -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html