diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-05-25 15:53:48 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-05-25 15:53:48 +0200 |
commit | 18464fb0646bfbb1543875a26303ae6f3ba3ba4e (patch) | |
tree | d879c0e24f95f67cb21e2187089ab4ed60583a61 | |
parent | 199554cada64d659bd756c7fb637f2d1f6a3cf12 (diff) | |
download | abrt-18464fb0646bfbb1543875a26303ae6f3ba3ba4e.tar.gz abrt-18464fb0646bfbb1543875a26303ae6f3ba3ba4e.tar.xz abrt-18464fb0646bfbb1543875a26303ae6f3ba3ba4e.zip |
trivial: close lock file on exec
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-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 */ } |