LogInit: fix file descriptor leak in SIGHUP handler

This commit is contained in:
Max Kellermann 2014-04-25 12:31:06 +02:00
parent 95b1a640b6
commit 6d616e55ae
1 changed files with 2 additions and 0 deletions

View File

@ -243,6 +243,8 @@ int cycle_log_files(void)
}
redirect_logs(fd);
close(fd);
FormatDebug(log_domain, "Done cycling log files");
return 0;
#endif