summaryrefslogtreecommitdiff
path: root/clientloop.c
diff options
context:
space:
mode:
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 0b9a0fb29..49f9ba1ab 100644
--- a/clientloop.c
+++ b/clientloop.c
@@ -59,7 +59,7 @@
59 */ 59 */
60 60
61#include "includes.h" 61#include "includes.h"
62RCSID("$OpenBSD: clientloop.c,v 1.130 2004/08/11 21:43:04 avsm Exp $"); 62RCSID("$OpenBSD: clientloop.c,v 1.131 2004/09/07 23:41:30 djm Exp $");
63 63
64#include "ssh.h" 64#include "ssh.h"
65#include "ssh1.h" 65#include "ssh1.h"
@@ -1196,6 +1196,8 @@ client_loop(int have_pty, int escape_char_arg, int ssh2_chan_id)
1196 * Set signal handlers, (e.g. to restore non-blocking mode) 1196 * Set signal handlers, (e.g. to restore non-blocking mode)
1197 * but don't overwrite SIG_IGN, matches behaviour from rsh(1) 1197 * but don't overwrite SIG_IGN, matches behaviour from rsh(1)
1198 */ 1198 */
1199 if (signal(SIGHUP, SIG_IGN) != SIG_IGN)
1200 signal(SIGHUP, signal_handler);
1199 if (signal(SIGINT, SIG_IGN) != SIG_IGN) 1201 if (signal(SIGINT, SIG_IGN) != SIG_IGN)
1200 signal(SIGINT, signal_handler); 1202 signal(SIGINT, signal_handler);
1201 if (signal(SIGQUIT, SIG_IGN) != SIG_IGN) 1203 if (signal(SIGQUIT, SIG_IGN) != SIG_IGN)