diff options
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/address.c | 1 | ||||
-rw-r--r-- | src/common/util.c | 11 |
2 files changed, 9 insertions, 3 deletions
diff --git a/src/common/address.c b/src/common/address.c index ac45cba95..dffbcaff4 100644 --- a/src/common/address.c +++ b/src/common/address.c @@ -1708,3 +1708,4 @@ tor_addr_port_new(const tor_addr_t *addr, uint16_t port) ap->port = port; return ap; } + diff --git a/src/common/util.c b/src/common/util.c index fa8fb5386..3efc25378 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -3897,10 +3897,15 @@ tor_process_handle_destroy(process_handle_t *process_handle, if (also_terminate_process) { if (tor_terminate_process(process_handle) < 0) { - log_notice(LD_GENERAL, "Failed to terminate process with PID '%d'", - tor_process_get_pid(process_handle)); + log_notice(LD_GENERAL, "Failed to terminate process with " + "PID '%d' ('%s').", tor_process_get_pid(process_handle), +#ifdef _WIN32 + format_win32_error(GetLastError())); +#else + strerror(errno)); +#endif } else { - log_info(LD_GENERAL, "Terminated process with PID '%d'", + log_info(LD_GENERAL, "Terminated process with PID '%d'.", tor_process_get_pid(process_handle)); } } |