add closefrom() call

Peter Jeremy peterjeremy at optushome.com.au
Mon Jul 16 11:34:33 UTC 2007


On 2007-Jul-15 16:51:38 -0700, Julian Elischer <julian at elischer.org> wrote:
>> void
>> closefrom(int lowfd)
>> {
>> 	fcntl(lowfd, F_CLOSEM, NULL);
>> }
>
>what on earth would that achieve?
>(as opposed to just a simple syscall)

The only benefit I can think of is minimising the number of syscalls.
Is there any other benefit?

-- 
Peter Jeremy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20070716/26ec86ae/attachment.pgp


More information about the freebsd-hackers mailing list