From: Fabian Keil Date: Sat, 13 Feb 2021 12:43:02 +0000 (+0100) Subject: listen_loop(): When shutting down gracefully, close listening ports X-Git-Tag: v_3_0_33~44 X-Git-Url: http://www.privoxy.org/gitweb/team/%22/configuration.html?a=commitdiff_plain;h=aaceefe0b1e2b0f4f7cc3a916fe42a35b90701d4;p=privoxy.git 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. --- 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();