From e038616f4a681bef050a2b20971c1d9af4fe7312 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 27 Jul 2008 19:08:19 +0000 Subject: * 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. --- libio/iopopen.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libio/iopopen.c') 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 #include +#include #ifndef _IO_fork #ifdef _LIBC -- cgit 1.4.1