summaryrefslogtreecommitdiffstats
path: root/crypto/telnet
diff options
context:
space:
mode:
authornsayer <nsayer@FreeBSD.org>2001-04-05 14:09:15 +0000
committernsayer <nsayer@FreeBSD.org>2001-04-05 14:09:15 +0000
commit66051d03dc660060ca561db94e51996f1bfe8d89 (patch)
treebef83692314537941c7712a6bc741e923fa41b7a /crypto/telnet
parent938fa0f26ba95dab039bd28edf94c4ed0dd165bf (diff)
downloadFreeBSD-src-66051d03dc660060ca561db94e51996f1bfe8d89.zip
FreeBSD-src-66051d03dc660060ca561db94e51996f1bfe8d89.tar.gz
Reactivate SRA.
Make handling of SIGINT and SIGQUIT follow SIGTSTP in TerminalNewMode(). This allows people to break out of SRA authentication if they wish to.
Diffstat (limited to 'crypto/telnet')
-rw-r--r--crypto/telnet/telnet/sys_bsd.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/crypto/telnet/telnet/sys_bsd.c b/crypto/telnet/telnet/sys_bsd.c
index aac7c6a..1d63c22 100644
--- a/crypto/telnet/telnet/sys_bsd.c
+++ b/crypto/telnet/telnet/sys_bsd.c
@@ -616,6 +616,12 @@ TerminalNewMode(f)
}
if (f != -1) {
+#ifdef SIGINT
+ SIG_FUNC_RET intr();
+#endif /* SIGINT */
+#ifdef SIGQUIT
+ SIG_FUNC_RET intr2();
+#endif /* SIGQUIT */
#ifdef SIGTSTP
SIG_FUNC_RET susp();
#endif /* SIGTSTP */
@@ -623,6 +629,12 @@ TerminalNewMode(f)
SIG_FUNC_RET ayt();
#endif
+#ifdef SIGINT
+ (void) signal(SIGINT, intr);
+#endif
+#ifdef SIGQUIT
+ (void) signal(SIGQUIT, intr2);
+#endif
#ifdef SIGTSTP
(void) signal(SIGTSTP, susp);
#endif /* SIGTSTP */
@@ -673,6 +685,12 @@ TerminalNewMode(f)
(void) signal(SIGINFO, ayt_status);
#endif
+#ifdef SIGINT
+ (void) signal(SIGINT, SIG_DFL);
+#endif
+#ifdef SIGQUIT
+ (void) signal(SIGQUIT, SIG_DFL);
+#endif
#ifdef SIGTSTP
(void) signal(SIGTSTP, SIG_DFL);
# ifndef SOLARIS
OpenPOWER on IntegriCloud