diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-10-20 10:16:00 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-10-20 11:39:17 -0400 |
commit | f0c3b6238168e351835fdc64b5c93b84d6528870 (patch) | |
tree | 1e6a1eacb456a8b60edda037e2e5e426ad5111b7 /src/common/compat_libevent.h | |
parent | 78cbced45cd244c8aab84e6fb8087b852769f5bc (diff) | |
download | tor-f0c3b6238168e351835fdc64b5c93b84d6528870.tar.gz tor-f0c3b6238168e351835fdc64b5c93b84d6528870.zip |
Expose a new function to make the event loop exit once and for all.
Instead of calling tor_cleanup(), exit(x), we can now call
tor_shutdown_event_loop_and_exit.
Diffstat (limited to 'src/common/compat_libevent.h')
-rw-r--r-- | src/common/compat_libevent.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/compat_libevent.h b/src/common/compat_libevent.h index 834354c405..3d8672fc63 100644 --- a/src/common/compat_libevent.h +++ b/src/common/compat_libevent.h @@ -30,6 +30,7 @@ periodic_timer_t *periodic_timer_new(struct event_base *base, void periodic_timer_free(periodic_timer_t *); #define tor_event_base_loopexit event_base_loopexit +#define tor_event_base_loopbreak event_base_loopbreak /** Defines a configuration for using libevent with Tor: passed as an argument * to tor_libevent_initialize() to describe how we want to set up. */ |