aboutsummaryrefslogtreecommitdiff
path: root/src/or/main.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-10-20 10:16:00 -0400
committerNick Mathewson <nickm@torproject.org>2017-10-20 11:39:17 -0400
commitf0c3b6238168e351835fdc64b5c93b84d6528870 (patch)
tree1e6a1eacb456a8b60edda037e2e5e426ad5111b7 /src/or/main.h
parent78cbced45cd244c8aab84e6fb8087b852769f5bc (diff)
downloadtor-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/or/main.h')
-rw-r--r--src/or/main.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/main.h b/src/or/main.h
index 808aa14143..5ab77c03ed 100644
--- a/src/or/main.h
+++ b/src/or/main.h
@@ -46,6 +46,8 @@ MOCK_DECL(void,connection_stop_writing,(connection_t *conn));
MOCK_DECL(void,connection_start_writing,(connection_t *conn));
void tell_event_loop_to_run_external_code(void);
+void tor_shutdown_event_loop_and_exit(int exitcode);
+int tor_event_loop_shutdown_is_pending(void);
void connection_stop_reading_from_linked_conn(connection_t *conn);