From 81cc5956d9cc33420e09df4469d3e1100034a003 Mon Sep 17 00:00:00 2001 From: sheldonh Date: Tue, 5 Feb 2002 15:20:02 +0000 Subject: 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 MFC after: 1 month --- libexec/telnetd/sys_term.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libexec/telnetd') 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); } -- cgit v1.1