@cryptotaxi247 / netdata-1 / commits / 93bf42c7c

Avoid blocking waiting for an event during shutdown (#19244)

Stelios Fragkakis committed Dec 18, 2024 at 12:51 UTC 93bf42c7cd03a3f8148c4dda3ffe83f87e84e51b
1 file changed +2 -2
src/database/sqlite/sqlite_aclk.c
+2 -2
@@ -487,10 +487,10 @@ static void aclk_synchronization(void *arg)
487 uv_close((uv_handle_t *)&config->timer_req, NULL);
488
489 uv_close((uv_handle_t *)&config->async, NULL);
490 - uv_run(loop, UV_RUN_DEFAULT);
490 + uv_run(loop, UV_RUN_NOWAIT);
491
492 uv_walk(loop, (uv_walk_cb) close_callback, NULL);
493 - uv_run(loop, UV_RUN_DEFAULT);
493 + uv_run(loop, UV_RUN_NOWAIT);
494
495 (void) uv_loop_close(loop);
496