Comment by toast0
Doesn't seem super relevant when the program will only have 5 FDs. Safe signal handling in poll does seem handy though.
Doesn't seem super relevant when the program will only have 5 FDs. Safe signal handling in poll does seem handy though.
Your program can be executed with fds 0-1023 already open.