The infamous to-do list
Russ Allbery
rra at stanford.edu
Fri Aug 11 07:20:06 UTC 2000
Aidan Cully <aidan at panix.com> writes:
> Actually, I've changed my mind about how to implement this for INN...
> Now, I think you can handle this easily by doing a
> getrlimit(RLIMIT_NOFILE), compare that against FD_SETSIZE, and if it's
> higher, a setrlimit(RLIMIT_NOFILE, FD_SETSIZE).
I just redid the file descriptor limit stuff for INN (I was sitting in the
Seattle airport waiting for a delayed flight and happened to have the INN
source tree on my laptop and nothing better to do), and the setfdlimit
function fails and returns -1 if you attempt to set a file descriptor
limit that's larger than FD_SETSIZE.
--
Russ Allbery (rra at stanford.edu) <http://www.eyrie.org/~eagle/>
More information about the inn-workers
mailing list