Fix infinite loop while triggering SIGHUP and log file reset causing … (#1630)

…segmentation fault

This reverts commit 8f9446cf8f.
This commit is contained in:
nicolas-laduguie 2025-02-21 06:14:07 +01:00 committed by GitHub
parent 9f3da44285
commit a21733b23d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -366,7 +366,7 @@ static void sighup_callback_handler(int signum) {
static void set_rtpfile(void) {
if (to_reset_log_file) {
TURN_LOG_FUNC(TURN_LOG_LEVEL_DEBUG, "%s: resetting the log file\n", __FUNCTION__);
printf("%s: resetting the log file\n", __FUNCTION__);
reset_rtpprintf();
to_reset_log_file = 0;
}