aboutsummaryrefslogtreecommitdiff
path: root/src/lib/log
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-10-22 12:13:47 -0400
committerNick Mathewson <nickm@torproject.org>2019-10-22 12:13:47 -0400
commitc1bf4260b69fa4de09471e31994b7fa242dce872 (patch)
tree2fc8de1b4657c598cf94d03e543349bbd96f7687 /src/lib/log
parentd4dde249a04c768381767f67a1a82425bc70baaa (diff)
parent749c2e1761c753992fb2549e7ee912e568f563d6 (diff)
downloadtor-c1bf4260b69fa4de09471e31994b7fa242dce872.tar.gz
tor-c1bf4260b69fa4de09471e31994b7fa242dce872.zip
Merge remote-tracking branch 'tor-github/pr/1302' into maint-0.4.1
Diffstat (limited to 'src/lib/log')
-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 d95bf1ff6e..6667c26864 100644
--- a/src/lib/log/log.c
+++ b/src/lib/log/log.c
@@ -806,7 +806,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. */
}
/** Remove and free the log entry <b>victim</b> from the linked-list