From aaceefe0b1e2b0f4f7cc3a916fe42a35b90701d4 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Sat, 13 Feb 2021 13:43:02 +0100 Subject: [PATCH] listen_loop(): When shutting down gracefully, close listening ports ... before waiting for the threads to exit. Allows to start a second Privoxy with the same config file while the first Privoxy is still running. --- jcc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jcc.c b/jcc.c index 54b0b2d3..659521c7 100644 --- a/jcc.c +++ b/jcc.c @@ -6276,6 +6276,8 @@ static void listen_loop(void) log_error(LOG_LEVEL_INFO, "Graceful termination requested."); + close_ports_helper(bfds); + unload_current_config_file(); unload_current_actions_file(); unload_current_re_filterfile(); -- 2.39.2