summaryrefslogtreecommitdiff
path: root/fixincludes/procopen.c
diff options
context:
space:
mode:
authoraaronwl <aaronwl@138bc75d-0d04-0410-961f-82ee72b054a4>2004-10-20 08:21:09 +0000
committeraaronwl <aaronwl@138bc75d-0d04-0410-961f-82ee72b054a4>2004-10-20 08:21:09 +0000
commitb05d4aeda0067057c1dbda75a7fd801e33ad1ebb (patch)
treeb61be9e61931a736e008e95859adbf4a9d604d94 /fixincludes/procopen.c
parentc461d81a342a6c853d2dd748c0e759fb47093af7 (diff)
downloadgcc-b05d4aeda0067057c1dbda75a7fd801e33ad1ebb.tar.gz
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(). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@89326 138bc75d-0d04-0410-961f-82ee72b054a4
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 6fdb24fec7e..75891e42c71 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;