summaryrefslogtreecommitdiffstats
path: root/libexec/telnetd
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 /libexec/telnetd
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 'libexec/telnetd')
-rw-r--r--libexec/telnetd/sys_term.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libexec/telnetd/sys_term.c b/libexec/telnetd/sys_term.c
index 3d9e091..089b0db 100644
--- a/libexec/telnetd/sys_term.c
+++ b/libexec/telnetd/sys_term.c
@@ -1180,5 +1180,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