(_IO_new_file_fopen): Recognize 'e' flag and set O_CLOEXEC is needed.
This commit is contained in:
parent
5c3d7832b6
commit
65d834b0ad
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue