Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

There's no need to actually do all the opening if you control the code.

You can do anything with `fcntl(F_DUPFD{,_CLOEXEC})` and `fdopen`.



If we had control of library code, we'd just get rid of select()...

Though we did use the dup trick in another case!




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: