Comment by oconnor663
Comment by oconnor663 a day ago
select() is at least kind of deprecated, in that its own man page says not to use it in new code.
Comment by oconnor663 a day ago
select() is at least kind of deprecated, in that its own man page says not to use it in new code.
In anything new you should use poll not select.
They're basically identical apis but poll doesn't have a hard limit and works with high number fds.
I don't see it in the man page?
https://man.freebsd.org/cgi/man.cgi?select
The man page also suggests how you might increase the FD limit if needed. I still use select for a small number of FDs where overhead isn't a real concern, and select is a good fit.