aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/common/util.c10
-rw-r--r--src/or/main.c9
2 files changed, 11 insertions, 8 deletions
diff --git a/src/common/util.c b/src/common/util.c
index 0e0dcb179c..d4d7cb3720 100644
--- a/src/common/util.c
+++ b/src/common/util.c
@@ -3923,13 +3923,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' ('%s').", tor_process_get_pid(process_handle),
+ const char *errstr =
#ifdef _WIN32
- format_win32_error(GetLastError()));
+ format_win32_error(GetLastError());
#else
- strerror(errno));
+ strerror(errno);
#endif
+ log_notice(LD_GENERAL, "Failed to terminate process with "
+ "PID '%d' ('%s').", tor_process_get_pid(process_handle),
+ errstr);
} else {
log_info(LD_GENERAL, "Terminated process with PID '%d'.",
tor_process_get_pid(process_handle));
diff --git a/src/or/main.c b/src/or/main.c
index 01da7a448d..635dcb4bd5 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -2309,13 +2309,14 @@ tor_init(int argc, char *argv[])
{
const char *version = get_version();
- log_notice(LD_GENERAL, "Tor v%s %srunning on %s with Libevent %s "
- "and OpenSSL %s.", version,
+ const char *bev_str =
#ifdef USE_BUFFEREVENTS
- "(with bufferevents) ",
+ "(with bufferevents) ";
#else
- "",
+ "";
#endif
+ log_notice(LD_GENERAL, "Tor v%s %srunning on %s with Libevent %s "
+ "and OpenSSL %s.", version, bev_str,
get_uname(),
tor_libevent_get_version_str(),
crypto_openssl_get_version_str());