aboutsummaryrefslogtreecommitdiff
path: root/src/or/control.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-02-25 16:09:15 -0500
committerNick Mathewson <nickm@torproject.org>2014-02-25 16:09:15 -0500
commitbf1678603ffa66ed47c038faf309984839a98363 (patch)
tree95d9af3006d4ecf5c0dc24b524d4b8defa1ffe0c /src/or/control.c
parent2f5d7bb7e9e7ce44cb90acdc7e84d0aa77e9322b (diff)
parentf96400d9df4cdf22db0c473be21024b60673b786 (diff)
downloadtor-bf1678603ffa66ed47c038faf309984839a98363.tar
tor-bf1678603ffa66ed47c038faf309984839a98363.tar.gz
Merge remote-tracking branch 'public/bug10449'
Diffstat (limited to 'src/or/control.c')
-rw-r--r--src/or/control.c17
1 files changed, 4 insertions, 13 deletions
diff --git a/src/or/control.c b/src/or/control.c
index 42db3613d..05ff9a659 100644
--- a/src/or/control.c
+++ b/src/or/control.c
@@ -3181,22 +3181,13 @@ connection_control_reached_eof(control_connection_t *conn)
static void
lost_owning_controller(const char *owner_type, const char *loss_manner)
{
- int shutdown_slowly = server_mode(get_options());
-
- log_notice(LD_CONTROL, "Owning controller %s has %s -- %s.",
- owner_type, loss_manner,
- shutdown_slowly ? "shutting down" : "exiting now");
+ log_notice(LD_CONTROL, "Owning controller %s has %s -- exiting now.",
+ owner_type, loss_manner);
/* XXXX Perhaps this chunk of code should be a separate function,
* called here and by process_signal(SIGINT). */
-
- if (!shutdown_slowly) {
- tor_cleanup();
- exit(0);
- }
- /* XXXX This will close all listening sockets except control-port
- * listeners. Perhaps we should close those too. */
- hibernate_begin_shutdown();
+ tor_cleanup();
+ exit(0);
}
/** Called when <b>conn</b> is being freed. */