3 ms·
To be more precise on one bit, you can't get fd=1026 without having had at least 1027 open at some point in the past. You can subsequently close a bunch of them
by dasyatidprime 5y ago
To be more precise on one bit, you can't get fd=1026 without having had at least 1027 open at some point in the past. You can subsequently close a bunch of them in the middle.
A compatibility hack for some applications reliant on badly-done select() might be to set RLIMIT_NOFILE to FD_SETSIZE.
- geocar 5y ago> To be more precise on one bit, you can't get fd=1026 without having had at least 1027 open at some point in the past. Of course you can. dup2(0,1026)
- dasyatidprime 5y agoHah! Yes, okay. I should have said “… by opening”.