diff --git a/src/haproxy.c b/src/haproxy.c index 31c48e1c0..1c4501a1d 100644 --- a/src/haproxy.c +++ b/src/haproxy.c @@ -980,7 +980,6 @@ int main(int argc, char **argv) if ((global.mode & MODE_QUIET) && !(global.mode & MODE_VERBOSE)) { /* detach from the tty */ fclose(stdin); fclose(stdout); fclose(stderr); - close(0); close(1); close(2); } /* open log & pid files before the chroot */ @@ -1158,7 +1157,6 @@ int main(int argc, char **argv) if (!(global.mode & MODE_QUIET) || (global.mode & MODE_VERBOSE)) { /* detach from the tty */ fclose(stdin); fclose(stdout); fclose(stderr); - close(0); close(1); close(2); /* close all fd's */ global.mode &= ~MODE_VERBOSE; global.mode |= MODE_QUIET; /* ensure that we won't say anything from now */ }