LogInit: fix file descriptor leak in SIGHUP handler
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user