Typo in <sys/select.h>?
Lavrentiev, Anton (NIH/NLM/NCBI) [C]
lavr@ncbi.nlm.nih.gov
Wed Jul 6 14:26:26 GMT 2022
> DESCRIPTION
> WARNING: select() can monitor only file descriptors numbers that are
> less than FD_SETSIZE (1024)-an unreasonably low limit for many modern
Whoever wrote this, was wrong (they might have never consulted the actual kernel code, or were just
blindsided by FD_SETSIZE being a predefined constant). You can take a look at the kernel source code,
if you don't believe me.
This select() trick has been like that from the earliest days of Linux, and the behavior is carefully carried over.
https://github.com/torvalds/linux/blob/master/fs/select.c#L625
It's just an FYI :-)
Anton Lavrentiev
Contractor NIH/NLM/NCBI
More information about the Cygwin
mailing list