summaryrefslogtreecommitdiff
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
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@
-rw-r--r--ChangeLog7
-rw-r--r--ssh.c10
2 files changed, 11 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index cd2fc1951..56237e3de 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -23,6 +23,11 @@
23 [multiplex.sh] 23 [multiplex.sh]
24 Use -S for scp/sftp to force the use of the ssh being tested. 24 Use -S for scp/sftp to force the use of the ssh being tested.
25 ok djm@,markus@ 25 ok djm@,markus@
26 - (djm) OpenBSD CVS Sync
27 - djm@cvs.openbsd.org 2004/06/18 10:40:19
28 [ssh.c]
29 delay signal handler setup until we have finished talking to the master.
30 allow interrupting of setup (e.g. if master is stuck); ok markus@
26 31
2720040617 3220040617
28 - (dtucker) [regress/scp.sh] diff -N is not portable (but needed for some 33 - (dtucker) [regress/scp.sh] diff -N is not portable (but needed for some
@@ -1296,4 +1301,4 @@
1296 - (djm) Trim deprecated options from INSTALL. Mention UsePAM 1301 - (djm) Trim deprecated options from INSTALL. Mention UsePAM
1297 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu 1302 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
1298 1303
1299$Id: ChangeLog,v 1.3411 2004/06/18 06:25:35 dtucker Exp $ 1304$Id: ChangeLog,v 1.3412 2004/06/18 12:20:57 djm Exp $
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