Do not send Libevent log messages to a controller (0.2.1 backport)
commit668f7a2639faf59e5bc4f2615e61e0e768e0b26d
authorNick Mathewson <nickm@torproject.org>
Sat, 20 Nov 2010 03:22:43 +0000 (19 22:22 -0500)
committerNick Mathewson <nickm@torproject.org>
Sat, 20 Nov 2010 03:27:40 +0000 (19 22:27 -0500)
tree65d05f689f883c22995ddc59635f11410a1394e8
parent566a115be1acbd0838c81edd251cf7ae47b94fe3
Do not send Libevent log messages to a controller (0.2.1 backport)

Doing so could make Libevent call Libevent from inside a Libevent
logging call, which is a recipe for reentrant confusion and
hard-to-debug crashes.  This would especially hurt if Libevent
debug-level logging is enabled AND the user has a controller
watching for low-severity log messages.

Fix bug 2190; fix on 0.1.0.2-rc.
changes/bug2190 [new file with mode: 0644]
src/common/log.c
src/common/log.h