diff options
author | 2004-06-18 10:40:19 +0000 | |
---|---|---|
committer | 2004-06-18 10:40:19 +0000 | |
commit | fc4d35af810f026f5c57a1515c04a399cb5ee9bf (patch) | |
tree | 1f037e3ec955d947ea475f961bee2ba91ab724a2 /usr.bin/ssh/ssh.c | |
parent | tagortag -> tag or tag. From Fabio Olive Leite. (diff) | |
download | wireguard-openbsd-fc4d35af810f026f5c57a1515c04a399cb5ee9bf.tar.xz wireguard-openbsd-fc4d35af810f026f5c57a1515c04a399cb5ee9bf.zip |
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 'usr.bin/ssh/ssh.c')
-rw-r--r-- | usr.bin/ssh/ssh.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/ssh/ssh.c b/usr.bin/ssh/ssh.c index 28fb4ca60b4..9124dff0248 100644 --- a/usr.bin/ssh/ssh.c +++ b/usr.bin/ssh/ssh.c @@ -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> @@ -1240,10 +1240,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 */ @@ -1286,6 +1282,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(); |