@cryptotaxi247 / netdata-1 / commits / 96bea4ead

FD Leaks Fix (#19327)

fix fds leak in health

Costa Tsaousis committed Jan 7, 2025 at 09:20 UTC 96bea4ead06d44b4842cb06fa21e60c196ad4ab1
1 file changed +3 -3
src/health/health_event_loop.c
+3 -3
@@ -690,11 +690,11 @@ static void health_event_loop(void) {
690 if(unlikely(!service_running(SERVICE_HEALTH)))
691 break;
692
693 + // wait for all notifications to finish before allowing health to be cleaned up
694 + wait_for_all_notifications_to_finish_before_allowing_health_to_be_cleaned_up();
695 +
696 health_sleep(next_run, loop);
697 } // forever
695 -
696 - // wait for all notifications to finish before allowing health to be cleaned up
697 - wait_for_all_notifications_to_finish_before_allowing_health_to_be_cleaned_up();
698 }
699
700