diff options
author | Bill Nottingham <notting@redhat.com> | 1999-02-05 23:12:51 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 1999-02-05 23:12:51 +0000 |
commit | bedbb272c360b28b83c2844bef98c8ad5f667dba (patch) | |
tree | 507f172443888947829a5f3ca98ecc731d1fb5a2 /src/process.c | |
parent | 0490bffffb0b51075cb6fca7f7592cc690eb0ed2 (diff) | |
download | initscripts-bedbb272c360b28b83c2844bef98c8ad5f667dba.tar initscripts-bedbb272c360b28b83c2844bef98c8ad5f667dba.tar.gz initscripts-bedbb272c360b28b83c2844bef98c8ad5f667dba.tar.bz2 initscripts-bedbb272c360b28b83c2844bef98c8ad5f667dba.tar.xz initscripts-bedbb272c360b28b83c2844bef98c8ad5f667dba.zip |
bill is a moron. also, fix ifup-aliases for bash2r3-84
Diffstat (limited to 'src/process.c')
-rw-r--r-- | src/process.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/process.c b/src/process.c index 739e8089..f52ade06 100644 --- a/src/process.c +++ b/src/process.c @@ -24,20 +24,20 @@ int forkCommand(char **args, int *outfd, int *errfd, int *cmdfd, int quiet) { return -1; } - dup2(0,fdin); + fdin=dup(0); if (outfd) { fdout = outpipe[1]; *outfd = outpipe[0]; } else { if (!quiet) - dup2(1,fdout); + fdout=dup(1); } if (errfd) { fderr = errpipe[1]; *errfd = errpipe[0]; } else { if (!quiet) - dup2(2,fderr); + fderr=dup(2); } fdcmd = fdpipe[1]; if (cmdfd) |