aboutsummaryrefslogtreecommitdiff
path: root/src/lib/log/log.c
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2019-09-30 13:47:53 +0300
committerGeorge Kadianakis <desnacked@riseup.net>2019-09-30 13:47:53 +0300
commitae8d36db313a548d9828384f2131f481640c6173 (patch)
tree424a7c540b55a4f3c2e8258f548a04c6d0797651 /src/lib/log/log.c
parentfc760c5088394741ac8c83706be6b737aef79beb (diff)
parent749c2e1761c753992fb2549e7ee912e568f563d6 (diff)
downloadtor-ae8d36db313a548d9828384f2131f481640c6173.tar.gz
tor-ae8d36db313a548d9828384f2131f481640c6173.zip
Merge branch 'tor-github/pr/1302'
Diffstat (limited to 'src/lib/log/log.c')
-rw-r--r--src/lib/log/log.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/log/log.c b/src/lib/log/log.c
index 4463bff618..d2002f6eae 100644
--- a/src/lib/log/log.c
+++ b/src/lib/log/log.c
@@ -832,7 +832,10 @@ logs_free_all(void)
}
/* We _could_ destroy the log mutex here, but that would screw up any logs
- * that happened between here and the end of execution. */
+ * that happened between here and the end of execution.
+ * If tor is re-initialized, log_mutex_initialized will still be 1. So we
+ * won't trigger any undefined behaviour by trying to re-initialize the
+ * log mutex. */
}
/** Close signal-safe log files.