diff options
author | Damien Miller <djm@mindrot.org> | 2004-06-18 22:20:57 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2004-06-18 22:20:57 +1000 |
commit | 0809e233a42d1818f3494581024e4ad1486e39be (patch) | |
tree | 3dc495099d1ce48f415560589ac49c790c85b228 | |
parent | 6288dc14fcce8f88216506ac3226849c3e43cfa7 (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-- | ChangeLog | 7 | ||||
-rw-r--r-- | ssh.c | 10 |
2 files changed, 11 insertions, 6 deletions
@@ -23,6 +23,11 @@ [multiplex.sh] Use -S for scp/sftp to force the use of the ssh being tested. ok djm@,markus@ + - (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@ 20040617 - (dtucker) [regress/scp.sh] diff -N is not portable (but needed for some @@ -1296,4 +1301,4 @@ - (djm) Trim deprecated options from INSTALL. Mention UsePAM - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu -$Id: ChangeLog,v 1.3411 2004/06/18 06:25:35 dtucker Exp $ +$Id: ChangeLog,v 1.3412 2004/06/18 12:20:57 djm Exp $ @@ -40,7 +40,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: ssh.c,v 1.217 2004/06/17 23:56:57 djm Exp $"); +RCSID("$OpenBSD: ssh.c,v 1.218 2004/06/18 10:40:19 djm Exp $"); #include <openssl/evp.h> #include <openssl/err.h> @@ -1256,10 +1256,6 @@ control_client(const char *path) if ((cp = getenv("TERM")) == NULL) cp = ""; - signal(SIGINT, control_client_sighandler); - signal(SIGTERM, control_client_sighandler); - signal(SIGWINCH, control_client_sigrelay); - buffer_init(&m); /* Get PID of controlee */ @@ -1302,6 +1298,10 @@ control_client(const char *path) fatal("%s: master returned error", __func__); buffer_free(&m); + signal(SIGINT, control_client_sighandler); + signal(SIGTERM, control_client_sighandler); + signal(SIGWINCH, control_client_sigrelay); + if (tty_flag) enter_raw_mode(); |