diff options
author | Max Kellermann <max@duempel.org> | 2014-04-25 12:31:06 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-04-25 12:31:06 +0200 |
commit | 6d616e55ae21681f1d6c965a26d58bd11efee9b8 (patch) | |
tree | 1a0e91c54f729fbb50ecbdf94494400c609a5a55 /src/LogInit.cxx | |
parent | 95b1a640b68066901abeb92e44b9cdd40631ff7a (diff) | |
download | mpd-6d616e55ae21681f1d6c965a26d58bd11efee9b8.tar.gz mpd-6d616e55ae21681f1d6c965a26d58bd11efee9b8.tar.xz mpd-6d616e55ae21681f1d6c965a26d58bd11efee9b8.zip |
LogInit: fix file descriptor leak in SIGHUP handler
Diffstat (limited to 'src/LogInit.cxx')
-rw-r--r-- | src/LogInit.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/LogInit.cxx b/src/LogInit.cxx index c80d4575f..accd1d4d8 100644 --- a/src/LogInit.cxx +++ b/src/LogInit.cxx @@ -243,6 +243,8 @@ int cycle_log_files(void) } redirect_logs(fd); + close(fd); + FormatDebug(log_domain, "Done cycling log files"); return 0; #endif |