This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Patch: use close-on-exec
- From: Andreas Schwab <schwab at suse dot de>
- To: tromey at redhat dot com
- Cc: Binutils Development <binutils at sourceware dot org>
- Date: Tue, 28 Oct 2008 10:42:30 +0100
- Subject: Re: Patch: use close-on-exec
- References: <m3wsftpse5.fsf@fleche.redhat.com>
Tom Tromey <tromey@redhat.com> writes:
> I don't really remember most of my portability foo. I just check for
> fileno and F_GETFD. I hope that is sufficient; if not it is at least
> easily fixed.
You might want to check for FD_CLOEXEC and use 1 instead if not
defined.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."