diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-12-17 16:41:01 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-12-17 16:41:01 -0500 |
commit | e969d9c6b4b82178fbc840e3d53e12cbb64fee5c (patch) | |
tree | 5be34da1967f5358ed84c816c86a4bce7d656a0e /src/core | |
parent | 5a22b42c3a01ad8d99e977cfd9efa760438129e9 (diff) | |
parent | c8b8b15f0eb2651dea694a057e70e6b8c34dbe05 (diff) | |
download | tor-e969d9c6b4b82178fbc840e3d53e12cbb64fee5c.tar.gz tor-e969d9c6b4b82178fbc840e3d53e12cbb64fee5c.zip |
Merge branch 'ticket28179_squashed' into ticket28179_squashed_merged
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/mainloop/mainloop.c | 15 | ||||
-rw-r--r-- | src/core/mainloop/mainloop.h | 1 |
2 files changed, 6 insertions, 10 deletions
diff --git a/src/core/mainloop/mainloop.c b/src/core/mainloop/mainloop.c index 985f5e5dac..834587bb71 100644 --- a/src/core/mainloop/mainloop.c +++ b/src/core/mainloop/mainloop.c @@ -200,7 +200,6 @@ static int can_complete_circuits = 0; #define LAZY_DESCRIPTOR_RETRY_INTERVAL (60) static int conn_close_if_marked(int i); -static int run_main_loop_until_done(void); static void connection_start_reading_from_linked_conn(connection_t *conn); static int connection_should_read_from_linked_conn(connection_t *conn); static void conn_read_callback(evutil_socket_t fd, short event, void *_conn); @@ -1853,10 +1852,6 @@ second_elapsed_callback(time_t now, const or_options_t *options) run_connection_housekeeping(i, now); } - /* 11b. check pending unconfigured managed proxies */ - if (!net_is_disabled() && pt_proxies_configuration_pending()) - pt_configure_remaining_proxies(); - /* Run again in a second. */ return 1; } @@ -2847,10 +2842,6 @@ do_main_loop(void) } } #endif /* defined(HAVE_SYSTEMD_209) */ - - main_loop_should_exit = 0; - main_loop_exit_value = 0; - #ifdef ENABLE_RESTART_DEBUGGING { static int first_time = 1; @@ -2976,10 +2967,14 @@ run_main_loop_once(void) * * Shadow won't invoke this function, so don't fill it up with things. */ -static int +STATIC int run_main_loop_until_done(void) { int loop_result = 1; + + main_loop_should_exit = 0; + main_loop_exit_value = 0; + do { loop_result = run_main_loop_once(); } while (loop_result == 1); diff --git a/src/core/mainloop/mainloop.h b/src/core/mainloop/mainloop.h index 14e80ebb21..730234857d 100644 --- a/src/core/mainloop/mainloop.h +++ b/src/core/mainloop/mainloop.h @@ -100,6 +100,7 @@ extern struct token_bucket_rw_t global_bucket; extern struct token_bucket_rw_t global_relayed_bucket; #ifdef MAINLOOP_PRIVATE +STATIC int run_main_loop_until_done(void); STATIC void close_closeable_connections(void); STATIC void initialize_periodic_events(void); STATIC void teardown_periodic_events(void); |