]> git.pond.sub.org Git - empserver/commit
(lwpInitSelect): The code to query the system's limit on file
authorMarkus Armbruster <armbru@pond.sub.org>
Tue, 27 Dec 2005 19:22:07 +0000 (19:22 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Tue, 27 Dec 2005 19:22:07 +0000 (19:22 +0000)
commit083f0ea3506553302f29eb5e25d2213edd34fba5
tree3e8ba8f96f7c1e8d3e3f47a3776a8bc6cc13e92f
parent3aebb68ee717a4aac0f7db62ea5abc6ffa5ab224
(lwpInitSelect): The code to query the system's limit on file
descriptors was not portable.  Simply use FD_SETSIZE instead.  The
lower of the two applies, so this wastes storage if the system's limit
is significantly below FD_SETSIZE.  Not an issue, as FD_SETSIZE is
fairly small.
(lwpSleepFd): Return if fd is too large.  Returning isn't nice,
but better than the buffer overruns in the old code.
(lwpSelect): Member nfile unused, remove.
src/lib/lwp/sel.c