[Privoxy-commits] [privoxy] 26/30: listen_loop(): When shutting down gracefully, close listening ports

User Git git at git.privoxy.org
Thu Nov 11 04:42:16 UTC 2021


This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository privoxy.

commit aaceefe0b1e2b0f4f7cc3a916fe42a35b90701d4
Author: Fabian Keil <fk at fabiankeil.de>
AuthorDate: Sat Feb 13 13:43:02 2021 +0100

    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();

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Privoxy-commits mailing list