diff options
author | Nick Mathewson <nickm@torproject.org> | 2015-08-13 09:13:21 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-08-13 09:17:41 -0400 |
commit | c7c73f117827b40c4086203f2bead9b45c0539e8 (patch) | |
tree | eb18fe184f245874e29c92170421545a702f7e96 /src | |
parent | f4f0b4326891e2e5907ff252c704c7f19bbfaf0d (diff) | |
download | tor-c7c73f117827b40c4086203f2bead9b45c0539e8.tar.gz tor-c7c73f117827b40c4086203f2bead9b45c0539e8.zip |
Change lost_owning_controller() to call activate_signal().
Closes ticket 16788.
Diffstat (limited to 'src')
-rw-r--r-- | src/or/control.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/or/control.c b/src/or/control.c index a0004c3dbe..a5073037ab 100644 --- a/src/or/control.c +++ b/src/or/control.c @@ -3932,10 +3932,6 @@ connection_control_reached_eof(control_connection_t *conn) return 0; } -static void lost_owning_controller(const char *owner_type, - const char *loss_manner) - ATTR_NORETURN; - /** Shut down this Tor instance in the same way that SIGINT would, but * with a log message appropriate for the loss of an owning controller. */ static void @@ -3944,10 +3940,7 @@ lost_owning_controller(const char *owner_type, const char *loss_manner) 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). */ - tor_cleanup(); - exit(0); + activate_signal(SIGTERM); } /** Called when <b>conn</b> is being freed. */ @@ -5552,8 +5545,6 @@ static char *owning_controller_process_spec = NULL; * if this Tor instance is not currently owned by a process. */ static tor_process_monitor_t *owning_controller_process_monitor = NULL; -static void owning_controller_procmon_cb(void *unused) ATTR_NORETURN; - /** Process-termination monitor callback for Tor's owning controller * process. */ static void |