3 ms·
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.
by buckle8017 1y 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 1y agoDoesn't seem super relevant when the program will only have 5 FDs. Safe signal handling in poll does seem handy though.
- naniwaduni 1y agoYour program can be executed with fds 0-1023 already open.