summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2001-02-22 05:24:06 +0000
committerBill Nottingham <notting@redhat.com>2001-02-22 05:24:06 +0000
commit51d8bd3f8e9ba48ae729ac138ebf31ef15d5cdbd (patch)
tree7142ab9b4568c6277f8bab2de18f648dda40543f
parentdb30b392d38f0fd88fdfdacb7c361e8cef2c0bae (diff)
downloadinitscripts-r5-66.tar.gz
initscripts-r5-66.tar.xz
initscripts-r5-66.zip
fix fixr5-66
-rw-r--r--src/process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/process.c b/src/process.c
index a880791a..4ff805ef 100644
--- a/src/process.c
+++ b/src/process.c
@@ -115,7 +115,7 @@ int forkCommand(char **args, int *outfd, int *errfd, int *cmdfd, int quiet) {
if(sc_open_max > 1) {
int fd;
for(fd = 3; fd < sc_open_max; fd++) {
- if (cmdfd && fd != CMD_FD)
+ if (!(cmdfd && fd == CMD_FD))
close(fd);
}
}