News for hackers. Stuff that matters.
Re:Too Many Open Files by o11c on Saturday June 07, 2025 @11:43AM (#44210387)
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`.

Re:Too Many Open Files by reisse on Saturday June 07, 2025 @05:29PM (#44212809)
If we had control of library code, we'd just get rid of select()...

Though we did use the dup trick in another case!