[ARGUS] fix select case: ensure read mask cleared first

slif at bellsouth.net slif at bellsouth.net
Fri Nov 5 11:44:57 EST 2004


the bit field arguments presented to select() must be freshly set
before any bits representing open file descriptors are set.

This patch fixes one case where the read mask was not cleared
before FD bits were set.

I've seen instances where the server would shut down completely
if the select errors out.  The server would log "client done",
and the "ra" client would print a "man" record whose last
field was "SHT".

The server is much more robust when this patch is applied.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-server-fix-select-2
Type: application/octet-stream
Size: 717 bytes
Desc: not available
URL: <https://pairlist1.pair.net/pipermail/argus/attachments/20041105/f8386e9f/attachment.obj>


More information about the argus mailing list