Commit 6d616e55 authored by Max Kellermann's avatar Max Kellermann

LogInit: fix file descriptor leak in SIGHUP handler

parent 95b1a640
...@@ -243,6 +243,8 @@ int cycle_log_files(void) ...@@ -243,6 +243,8 @@ int cycle_log_files(void)
} }
redirect_logs(fd); redirect_logs(fd);
close(fd);
FormatDebug(log_domain, "Done cycling log files"); FormatDebug(log_domain, "Done cycling log files");
return 0; return 0;
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment