From: Ulrich Drepper Date: Sun, 22 Jul 2007 18:37:10 +0000 (+0000) Subject: (_IO_new_file_fopen): Recognize 'e' flag and set O_CLOEXEC is needed. X-Git-Tag: cvs/fedora-glibc-20070731T1624~35 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=65d834b0add966dbbdb5ed1e916c60b2b2d87f10;p=platform%2Fupstream%2Fglibc.git (_IO_new_file_fopen): Recognize 'e' flag and set O_CLOEXEC is needed. --- diff --git a/libio/fileops.c b/libio/fileops.c index 886b372..95cd2d6 100644 --- a/libio/fileops.c +++ b/libio/fileops.c @@ -320,6 +320,11 @@ _IO_new_file_fopen (fp, filename, mode, is32not64) case 'c': fp->_flags2 |= _IO_FLAGS2_NOTCANCEL; break; +#ifdef O_CLOEXEC + case 'e': + oflags |= O_CLOEXEC; + break; +#endif default: /* Ignore. */ continue;