From 3f69bc1f408f63eec435ea7cf3a8c79a5911f1ed Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Sun, 27 Nov 2005 11:09:39 +0000 Subject: * When the client receives a signal, don't fatal() with "Killed by signal %d." (which produces unhelpful noise on stderr and causes confusion for users of some applications that wrap ssh); instead, generate a debug message and exit with the traditional status (closes: #313371). --- clientloop.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'clientloop.c') diff --git a/clientloop.c b/clientloop.c index c9176c0d7..6a35c8e3e 100644 --- a/clientloop.c +++ b/clientloop.c @@ -1505,8 +1505,10 @@ client_loop(int have_pty, int escape_char_arg, int ssh2_chan_id) exit_status = 0; } - if (received_signal) - fatal("Killed by signal %d.", (int) received_signal); + if (received_signal) { + debug("Killed by signal %d.", (int) received_signal); + cleanup_exit((int) received_signal + 128); + } /* * In interactive mode (with pseudo tty) display a message indicating -- cgit v1.2.3