← Back to context Comment by oconnor663 1 day ago select() is at least kind of deprecated, in that its own man page says not to use it in new code. 5 comments oconnor663 Reply toast0 1 day ago I don't see it in the man page?https://man.freebsd.org/cgi/man.cgi?selectThe 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. hippo22 1 day ago https://man7.org/linux/man-pages/man2/select.2.html buckle8017 1 day ago 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. toast0 19 hours ago Doesn't seem super relevant when the program will only have 5 FDs. Safe signal handling in poll does seem handy though. 1 reply →
toast0 1 day ago I don't see it in the man page?https://man.freebsd.org/cgi/man.cgi?selectThe 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. hippo22 1 day ago https://man7.org/linux/man-pages/man2/select.2.html buckle8017 1 day ago 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. toast0 19 hours ago Doesn't seem super relevant when the program will only have 5 FDs. Safe signal handling in poll does seem handy though. 1 reply →
buckle8017 1 day ago 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. toast0 19 hours ago Doesn't seem super relevant when the program will only have 5 FDs. Safe signal handling in poll does seem handy though. 1 reply →
toast0 19 hours ago Doesn't seem super relevant when the program will only have 5 FDs. Safe signal handling in poll does seem handy though. 1 reply →
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.
https://man7.org/linux/man-pages/man2/select.2.html
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.
Doesn't seem super relevant when the program will only have 5 FDs. Safe signal handling in poll does seem handy though.
1 reply →