summaryrefslogtreecommitdiffstats
path: root/clientloop.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2004-11-05 20:02:16 +1100
committerDarren Tucker <dtucker@zip.com.au>2004-11-05 20:02:16 +1100
commit07336dae9491062f32ca93ec3ccd4b17774bdd00 (patch)
tree28223cb6e25c6c2bd3750416d3e2a52a84f4a5dd /clientloop.c
parent4e4fe0052c3d61db171c673f8d6c58cb44d9d123 (diff)
- djm@cvs.openbsd.org 2004/09/07 23:41:30
[clientloop.c ssh.c] cleanup multiplex control socket on SIGHUP too, spotted by sturm@ ok markus@ deraadt@
Diffstat (limited to 'clientloop.c')
-rw-r--r--clientloop.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/clientloop.c b/clientloop.c
index 0b9a0fb2..49f9ba1a 100644
--- a/clientloop.c
+++ b/clientloop.c
@@ -59,7 +59,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: clientloop.c,v 1.130 2004/08/11 21:43:04 avsm Exp $");
+RCSID("$OpenBSD: clientloop.c,v 1.131 2004/09/07 23:41:30 djm Exp $");
#include "ssh.h"
#include "ssh1.h"
@@ -1196,6 +1196,8 @@ client_loop(int have_pty, int escape_char_arg, int ssh2_chan_id)
* Set signal handlers, (e.g. to restore non-blocking mode)
* but don't overwrite SIG_IGN, matches behaviour from rsh(1)
*/
+ if (signal(SIGHUP, SIG_IGN) != SIG_IGN)
+ signal(SIGHUP, signal_handler);
if (signal(SIGINT, SIG_IGN) != SIG_IGN)
signal(SIGINT, signal_handler);
if (signal(SIGQUIT, SIG_IGN) != SIG_IGN)