summaryrefslogtreecommitdiff
path: root/ssh.c
diff options
context:
space:
mode:
Diffstat (limited to 'ssh.c')
-rw-r--r--ssh.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ssh.c b/ssh.c
index 16284f824..89b038198 100644
--- a/ssh.c
+++ b/ssh.c
@@ -40,7 +40,7 @@
40 */ 40 */
41 41
42#include "includes.h" 42#include "includes.h"
43RCSID("$OpenBSD: ssh.c,v 1.217 2004/06/17 23:56:57 djm Exp $"); 43RCSID("$OpenBSD: ssh.c,v 1.218 2004/06/18 10:40:19 djm Exp $");
44 44
45#include <openssl/evp.h> 45#include <openssl/evp.h>
46#include <openssl/err.h> 46#include <openssl/err.h>
@@ -1256,10 +1256,6 @@ control_client(const char *path)
1256 if ((cp = getenv("TERM")) == NULL) 1256 if ((cp = getenv("TERM")) == NULL)
1257 cp = ""; 1257 cp = "";
1258 1258
1259 signal(SIGINT, control_client_sighandler);
1260 signal(SIGTERM, control_client_sighandler);
1261 signal(SIGWINCH, control_client_sigrelay);
1262
1263 buffer_init(&m); 1259 buffer_init(&m);
1264 1260
1265 /* Get PID of controlee */ 1261 /* Get PID of controlee */
@@ -1302,6 +1298,10 @@ control_client(const char *path)
1302 fatal("%s: master returned error", __func__); 1298 fatal("%s: master returned error", __func__);
1303 buffer_free(&m); 1299 buffer_free(&m);
1304 1300
1301 signal(SIGINT, control_client_sighandler);
1302 signal(SIGTERM, control_client_sighandler);
1303 signal(SIGWINCH, control_client_sigrelay);
1304
1305 if (tty_flag) 1305 if (tty_flag)
1306 enter_raw_mode(); 1306 enter_raw_mode();
1307 1307