summaryrefslogtreecommitdiff
path: root/ssh.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2004-06-18 22:20:57 +1000
committerDamien Miller <djm@mindrot.org>2004-06-18 22:20:57 +1000
commit0809e233a42d1818f3494581024e4ad1486e39be (patch)
tree3dc495099d1ce48f415560589ac49c790c85b228 /ssh.c
parent6288dc14fcce8f88216506ac3226849c3e43cfa7 (diff)
- (djm) OpenBSD CVS Sync
- djm@cvs.openbsd.org 2004/06/18 10:40:19 [ssh.c] delay signal handler setup until we have finished talking to the master. allow interrupting of setup (e.g. if master is stuck); ok markus@
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