projects
/
platform
/
upstream
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c3d783
)
(_IO_new_file_fopen): Recognize 'e' flag and set O_CLOEXEC is needed.
author
Ulrich Drepper
<drepper@redhat.com>
Sun, 22 Jul 2007 18:37:10 +0000
(18:37 +0000)
committer
Ulrich Drepper
<drepper@redhat.com>
Sun, 22 Jul 2007 18:37:10 +0000
(18:37 +0000)
libio/fileops.c
patch
|
blob
|
history
diff --git
a/libio/fileops.c
b/libio/fileops.c
index
886b372
..
95cd2d6
100644
(file)
--- 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;