aboutsummaryrefslogtreecommitdiff
path: root/src/or/config.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-05-10 09:13:28 -0400
committerNick Mathewson <nickm@torproject.org>2018-05-10 09:13:28 -0400
commit1eede00a4bd9a7de2acf77393f2fc57aa3196d08 (patch)
tree688cc901746da198c07db0932bfca14de2c22651 /src/or/config.c
parentbeca6a585c5cd594333ae07b0ae3326188f9d67c (diff)
parent8b4cf7771e869bea4550452ad2cf5634278e0e87 (diff)
downloadtor-1eede00a4bd9a7de2acf77393f2fc57aa3196d08.tar.gz
tor-1eede00a4bd9a7de2acf77393f2fc57aa3196d08.zip
Merge branch 'ticket26063_squashed'
Diffstat (limited to 'src/or/config.c')
-rw-r--r--src/or/config.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/or/config.c b/src/or/config.c
index 5e84ec1d61..94a58f3488 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -1449,9 +1449,9 @@ options_act_reversible(const or_options_t *old_options, char **msg)
consider_hibernation(time(NULL));
/* Launch the listeners. (We do this before we setuid, so we can bind to
- * ports under 1024.) We don't want to rebind if we're hibernating. If
- * networking is disabled, this will close all but the control listeners,
- * but disable those. */
+ * ports under 1024.) We don't want to rebind if we're hibernating or
+ * shutting down. If networking is disabled, this will close all but the
+ * control listeners, but disable those. */
if (!we_are_hibernating()) {
if (retry_all_listeners(replaced_listeners, new_listeners,
options->DisableNetwork) < 0) {
@@ -2001,6 +2001,9 @@ options_act(const or_options_t *old_options)
finish_daemon(options->DataDirectory);
}
+ /* See whether we need to enable/disable our once-a-second timer. */
+ reschedule_per_second_timer();
+
/* We want to reinit keys as needed before we do much of anything else:
keys are important, and other things can depend on them. */
if (transition_affects_workers ||