> 3) Close all FDs except the ones you explicitly want to keep. This
> is normally something like:
> for (i = getdtablesize(); --i > 2; )
> close(i);
> The advantage is that you are sure you don't miss any. The
> disadvantage is that it requires a system call for each potentially
> open FD - >600 on my system - whereas maybe only 4 or 5 are
> actually open.
How many daemons suffer from performance problems because of
this? None that I know of. I'm sorry, but this syscall seems
like clutter to me.
Regards,
Niall
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message