"John W. DeBoskey" <[EMAIL PROTECTED]> wrote:
>   I like this approach. I have a number of often spawned daemon
>processes that could benefit from this.
I don't suppose that you have any statistics showing that the
        for (i = 3; i < getdtablesize(); i++) close(i);
approach would be too slow?

>   For naming convention considerations, I might suggest 'closeall'
>or 'closefdset' or something similar... at least have 'close' in 
>name... :-)

I'm not really keen on the name either - but I couldn't think of
anything better.  `closeall' isn't really descriptive since it doesn't
close all the FDs.  `closefdset' suggests (to me, anyway) the opposite
behaviour: ie closing the FDs specified in the passed fd_set, instead
of closing everything else.

Peter


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to