mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Only terminate PT processes that are running.
See: tpo/core/tor#33669
This commit is contained in:
committed by
David Goulet
parent
0d51dfa605
commit
3338b34ec9
@@ -519,8 +519,10 @@ proxy_prepare_for_restart(managed_proxy_t *mp)
|
||||
tor_assert(mp->conf_state == PT_PROTO_COMPLETED);
|
||||
|
||||
/* destroy the process handle and terminate the process. */
|
||||
process_set_data(mp->process, NULL);
|
||||
process_terminate(mp->process);
|
||||
if (mp->process) {
|
||||
process_set_data(mp->process, NULL);
|
||||
process_terminate(mp->process);
|
||||
}
|
||||
|
||||
/* destroy all its registered transports, since we will no longer
|
||||
use them. */
|
||||
|
||||
Reference in New Issue
Block a user