LogInit: fix file descriptor leak in SIGHUP handler
This commit is contained in:
parent
95b1a640b6
commit
6d616e55ae
|
@ -243,6 +243,8 @@ int cycle_log_files(void)
|
|||
}
|
||||
|
||||
redirect_logs(fd);
|
||||
close(fd);
|
||||
|
||||
FormatDebug(log_domain, "Done cycling log files");
|
||||
return 0;
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue