Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library

Comment by 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.

2 comments

buckle8017

Reply

toast0  1 day ago

Doesn't seem super relevant when the program will only have 5 FDs. Safe signal handling in poll does seem handy though.

  • naniwaduni  1 day ago

    Your program can be executed with fds 0-1023 already open.

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities