diff options
-rw-r--r-- | src/Daemon/Daemon.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Daemon/Daemon.cpp b/src/Daemon/Daemon.cpp index 68cc16fa..73840973 100644 --- a/src/Daemon/Daemon.cpp +++ b/src/Daemon/Daemon.cpp @@ -392,6 +392,7 @@ static int Lock() perror_msg("Can't lock file '%s'", VAR_RUN_LOCK_FILE); return -1; } + close_on_exec_on(lfd); return 0; /* we leak opened lfd intentionally */ } |