diff options
-rw-r--r-- | libdaemon/dfork.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libdaemon/dfork.c b/libdaemon/dfork.c index e705155..2f57f1c 100644 --- a/libdaemon/dfork.c +++ b/libdaemon/dfork.c @@ -515,7 +515,7 @@ int daemon_close_allv(const int except_fds[]) { return -1; } - if (fd <= 3) + if (fd < 3) continue; if (fd == dirfd(d)) |