From 65d834b0add966dbbdb5ed1e916c60b2b2d87f10 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 22 Jul 2007 18:37:10 +0000 Subject: (_IO_new_file_fopen): Recognize 'e' flag and set O_CLOEXEC is needed. --- libio/fileops.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libio') diff --git a/libio/fileops.c b/libio/fileops.c index 886b3729c3..95cd2d64c9 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; -- cgit v1.2.1