Re: add closefrom() call
--J/dobhs11T7y2rNN
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On 2007-Jul-15 16:51:38 -0700, Julian Elischer <julian@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?
--=20
Peter Jeremy
--J/dobhs11T7y2rNN
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (FreeBSD)
iD8DBQFGm1fB/opHv/APuIcRAkc6AKCbyJ+DbrIosG5rTcr3B25PVmrmgwCgjp76
X/2HU5d0DfwSwTnwwTfvYAE=
=UJbg
-----END PGP SIGNATURE-----
--J/dobhs11T7y2rNN--
討論串 (同標題文章)
完整討論串 (本文為第 24 之 26 篇):