diff options
author | Alexander Færøy <ahf@torproject.org> | 2021-09-24 14:47:30 +0200 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2023-05-25 10:50:11 -0400 |
commit | 0d51dfa605a83fa2b97144de12c76c7ef79e15bb (patch) | |
tree | 92ee8d8c7ff9703ba70b0ba9dd1ebf586357959b /src/feature/client/transports.c | |
parent | 5118a8003b2679d30c7a3cc7207d50af985b9434 (diff) | |
download | tor-0d51dfa605a83fa2b97144de12c76c7ef79e15bb.tar.gz tor-0d51dfa605a83fa2b97144de12c76c7ef79e15bb.zip |
Log name of managed proxy in exit handler.
This patch ensures that we can figure out which PT that terminated in
the PT exit handler.
See: tpo/core/tor#33669
Diffstat (limited to 'src/feature/client/transports.c')
-rw-r--r-- | src/feature/client/transports.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/feature/client/transports.c b/src/feature/client/transports.c index c5d7df479d..e8f0ed543f 100644 --- a/src/feature/client/transports.c +++ b/src/feature/client/transports.c @@ -1941,9 +1941,12 @@ managed_proxy_exit_callback(process_t *process, process_exit_code_t exit_code) { tor_assert(process); + const managed_proxy_t *mp = process_get_data(process); + const char *name = mp ? mp->argv[0] : "N/A"; + log_warn(LD_PT, - "Pluggable Transport process terminated with status code %" PRIu64, - exit_code); + "Managed proxy \"%s\" process terminated with status code %" PRIu64, + name, exit_code); /* Returning true here means that the process subsystem will take care of * calling process_free() on our process_t. */ |