[PATCH] Use O_CLOEXEC for internal file descriptors

Adam Jackson ajax at redhat.com
Mon Feb 27 11:44:05 PST 2012


On Mon, 2012-02-27 at 10:41 -0800, Alan Coopersmith wrote:
> On 02/27/12 08:35 AM, Adam Jackson wrote:
> > +#if defined(linux) && !defined(__GNU_SOURCE)
> > +#define __GNU_SOURCE
> > +#endif
> 
> Wouldn't AC_USE_SYSTEM_EXTENSIONS in configure.ac cover this, as well as making
> it more likely to enable non-standard extensions such as this on other OSes?

Technically O_CLOEXEC is standardized in POSIX.1-2008, but yes, that
would be better.  Will resend.

- ajax
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.x.org/archives/xorg-devel/attachments/20120227/1ba05401/attachment.pgp>


More information about the xorg-devel mailing list