about summary refs log tree commit diff
path: root/libio/fileops.c
diff options
context:
space:
mode:
Diffstat (limited to 'libio/fileops.c')
-rw-r--r--libio/fileops.c5
1 files changed, 5 insertions, 0 deletions
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;