about summary refs log tree commit diff
path: root/libio/iopopen.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2008-07-27 19:08:19 +0000
committerUlrich Drepper <drepper@redhat.com>2008-07-27 19:08:19 +0000
commite038616f4a681bef050a2b20971c1d9af4fe7312 (patch)
treef4beb045e6a0d4915bdb158af0ea6f8ff6160abd /libio/iopopen.c
parentd6e0c2a67dbdb3f940d60f68bbcf58a5bdee4a97 (diff)
downloadglibc-e038616f4a681bef050a2b20971c1d9af4fe7312.tar.gz
glibc-e038616f4a681bef050a2b20971c1d9af4fe7312.tar.xz
glibc-e038616f4a681bef050a2b20971c1d9af4fe7312.zip
* posix/wordexp.c (exec_comm): Use pipe2 if possible to create
	file descriptors with close-on-exec set.
	(exec_comm_child): Fix the case where the write end of the pipe is
	STDOUT_FILENO already.  In case it is, clear close-on-exec.
Diffstat (limited to 'libio/iopopen.c')
-rw-r--r--libio/iopopen.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libio/iopopen.c b/libio/iopopen.c
index 0ea7c2317b..09f3ba3a76 100644
--- a/libio/iopopen.c
+++ b/libio/iopopen.c
@@ -44,6 +44,7 @@
 #endif
 #include <sys/types.h>
 #include <sys/wait.h>
+#include <kernel-features.h>
 
 #ifndef _IO_fork
 #ifdef _LIBC