diff options
author | Nick Mathewson <nickm@torproject.org> | 2010-11-19 22:52:32 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2010-11-19 22:52:32 -0500 |
commit | d166d18643197c57ba98d3a476df26c605554b26 (patch) | |
tree | c4b2ef69e1bf412a3bf59f397b22935a188f49ac /src/common/torlog.h | |
parent | 6199ac5fbec7f8a862440a8b65f7f299de4c2dbf (diff) | |
download | tor-d166d18643197c57ba98d3a476df26c605554b26.tar.gz tor-d166d18643197c57ba98d3a476df26c605554b26.zip |
Better fix for 2190: defer libevent->controller messages instead of dropping
Diffstat (limited to 'src/common/torlog.h')
-rw-r--r-- | src/common/torlog.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/common/torlog.h b/src/common/torlog.h index 8b6cd1bf02..73c690631f 100644 --- a/src/common/torlog.h +++ b/src/common/torlog.h @@ -95,8 +95,8 @@ /** Number of logging domains in the code. */ #define N_LOGGING_DOMAINS 20 -/** This log message is not safe to send to a callback-based logger. - * Used as a flag, not a log domain. */ +/** This log message is not safe to send to a callback-based logger + * immediately. Used as a flag, not a log domain. */ #define LD_NOCB (1u<<31) typedef uint32_t log_domain_mask_t; @@ -141,6 +141,7 @@ void rollback_log_changes(void); void mark_logs_temp(void); void change_callback_log_severity(int loglevelMin, int loglevelMax, log_callback cb); +void flush_pending_log_callbacks(void); void log_set_application_name(const char *name); /* Outputs a message to stdout */ |