aboutsummaryrefslogtreecommitdiffstats
path: root/src/LogInit.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-04-25 12:31:06 +0200
committerMax Kellermann <max@duempel.org>2014-04-25 12:31:06 +0200
commit6d616e55ae21681f1d6c965a26d58bd11efee9b8 (patch)
tree1a0e91c54f729fbb50ecbdf94494400c609a5a55 /src/LogInit.cxx
parent95b1a640b68066901abeb92e44b9cdd40631ff7a (diff)
downloadmpd-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.cxx2
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