3 ms·
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`.
by o11c 1y ago
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`.
- reisse 1y agoIf we had control of library code, we'd just get rid of select()... Though we did use the dup trick in another case!