aboutsummaryrefslogtreecommitdiff
path: root/fixincludes/procopen.c
diff options
context:
space:
mode:
authorAaron W. LaFramboise <aaronavay62@aaronwl.com>2004-10-20 02:21:09 -0600
committerAaron W. LaFramboise <aaronwl@gcc.gnu.org>2004-10-20 02:21:09 -0600
commitf4a8f2791cdea5aa417884db3e7da0310babc848 (patch)
treeb61be9e61931a736e008e95859adbf4a9d604d94 /fixincludes/procopen.c
parentd65c67104ff031bc0cfb067af4959e9ad9bed2a0 (diff)
downloadgcc-f4a8f2791cdea5aa417884db3e7da0310babc848.zip
gcc-f4a8f2791cdea5aa417884db3e7da0310babc848.tar.gz
gcc-f4a8f2791cdea5aa417884db3e7da0310babc848.tar.bz2
re PR bootstrap/17832 (Bootstrap broken by fixincludes failures)
PR bootstrap/17832 * fixincl.c (SIGCHLD): Remove definition. (initialize): Remove SIGIOT and SIGPIPE checks. (create_file): Fix mkdir() for Win32. (internal_fix): Use dup2() instead of fcntl(). * fixlib.h (SIGQUIT): Define if undefined. (SIGIOT): Same. (SIGPIPE): Same. (SIGALRM): Same. (SIGKILL): Same. * procopen.c (chain_open): Use dup2() instead of fcntl(). From-SVN: r89326
Diffstat (limited to 'fixincludes/procopen.c')
-rw-r--r--fixincludes/procopen.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fixincludes/procopen.c b/fixincludes/procopen.c
index 6fdb24f..75891e4 100644
--- a/fixincludes/procopen.c
+++ b/fixincludes/procopen.c
@@ -2,7 +2,7 @@
/*
* server.c Set up and handle communications with a server process.
*
- * Server Handling copyright 1992-1999 The Free Software Foundation
+ * Server Handling copyright 1992-1999, 2004 The Free Software Foundation
*
* Server Handling is free software.
* You may redistribute it and/or modify it under the terms of the
@@ -155,8 +155,8 @@ chain_open (int stdin_fd, tCC** pp_args, pid_t* p_child)
* Make the fd passed in the stdin, and the write end of
* the new pipe become the stdout.
*/
- fcntl (stdout_pair.write_fd, F_DUPFD, STDOUT_FILENO);
- fcntl (stdin_fd, F_DUPFD, STDIN_FILENO);
+ dup2 (stdout_pair.write_fd, STDOUT_FILENO);
+ dup2 (stdin_fd, STDIN_FILENO);
if (*pp_args == (char *) NULL)
*pp_args = pz_cmd;