mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 13:13:44 +01:00
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
This commit is contained in:
parent
5118a8003b
commit
0d51dfa605
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user