projects
/
privoxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
018fd2a
)
listen_loop(): When shutting down gracefully, close listening ports
author
Fabian Keil
<fk@fabiankeil.de>
Sat, 13 Feb 2021 12:43:02 +0000
(13:43 +0100)
committer
Fabian Keil
<fk@fabiankeil.de>
Wed, 10 Nov 2021 16:46:52 +0000
(17:46 +0100)
... 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
patch
|
blob
|
history
diff --git
a/jcc.c
b/jcc.c
index
54b0b2d
..
659521c
100644
(file)
--- 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();