Date: Thu, 22 Jul 1999 12:10:12 +1000 From: Peter Jeremy <jeremyp@gsmx07.alcatel.com.au> To: jwd@unx.sas.com Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Proposal for new syscall to close files Message-ID: <99Jul22.115150est.40336@border.alcanet.com.au> In-Reply-To: <199907220123.VAA32548@bb01f39.unx.sas.com>
next in thread | previous in thread | raw e-mail | index | archive | help
"John W. DeBoskey" <jwd@unx.sas.com> 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 majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?99Jul22.115150est.40336>