Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Jul 1999 13:45:33 -0700 (PDT)
From:      Julian Elischer <julian@whistle.com>
To:        Peter Jeremy <jeremyp@gsmx07.alcatel.com.au>
Cc:        jwd@unx.sas.com, freebsd-hackers@FreeBSD.ORG
Subject:   Re: Proposal for new syscall to close files
Message-ID:  <Pine.BSF.3.95.990722134515.21011E-100000@current1.whistle.com>
In-Reply-To: <99Jul22.115150est.40336@border.alcanet.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
I am not sure I see a need for this syscall...

julian

On Thu, 22 Jul 1999, Peter Jeremy wrote:

> "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
> 



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?Pine.BSF.3.95.990722134515.21011E-100000>