diff options
-rw-r--r-- | lib/util/become_daemon.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/util/become_daemon.c b/lib/util/become_daemon.c index 373927ca6e..2ca047861f 100644 --- a/lib/util/become_daemon.c +++ b/lib/util/become_daemon.c @@ -62,6 +62,7 @@ _PUBLIC_ void close_low_fds(bool stdin_too, bool stdout_too, bool stderr_too) } if (fd != i) { DEBUG(0,("Didn't get file descriptor %d\n",i)); + close(fd); return; } } |