summaryrefslogtreecommitdiffstats
path: root/contrib/telnet
diff options
context:
space:
mode:
authorsheldonh <sheldonh@FreeBSD.org>2002-02-05 15:20:02 +0000
committersheldonh <sheldonh@FreeBSD.org>2002-02-05 15:20:02 +0000
commit81cc5956d9cc33420e09df4469d3e1100034a003 (patch)
tree355b7d62a2c23bcd0453c0d88f4cc13157a71054 /contrib/telnet
parent7d6571799b12fc8f4c0c4b80c5ec9903bc5542f0 (diff)
downloadFreeBSD-src-81cc5956d9cc33420e09df4469d3e1100034a003.zip
FreeBSD-src-81cc5956d9cc33420e09df4469d3e1100034a003.tar.gz
Don't use non-signal-safe functions (exit(3) in this case) in
signal handlers. In this case, use _exit(2) instead, following the call to shutdown(2). This fixes rare telnetd hangs. PR: misc/33672 Submitted by: Umesh Krishnaswamy <umesh@juniper.net> MFC after: 1 month
Diffstat (limited to 'contrib/telnet')
-rw-r--r--contrib/telnet/telnetd/sys_term.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/telnet/telnetd/sys_term.c b/contrib/telnet/telnetd/sys_term.c
index 385655d..419f4fb 100644
--- a/contrib/telnet/telnetd/sys_term.c
+++ b/contrib/telnet/telnetd/sys_term.c
@@ -1327,5 +1327,5 @@ cleanup(int sig __unused)
(void)chmod(line, 0666);
(void)chown(line, 0, 0);
(void) shutdown(net, 2);
- exit(1);
+ _exit(1);
}
OpenPOWER on IntegriCloud