From 51d8bd3f8e9ba48ae729ac138ebf31ef15d5cdbd Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 22 Feb 2001 05:24:06 +0000 Subject: fix fix --- src/process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); } } -- cgit v1.2.1