]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Don't use non-signal-safe functions (exit(3) in this case) in
authorSheldon Hearn <sheldonh@FreeBSD.org>
Tue, 5 Feb 2002 15:20:02 +0000 (15:20 +0000)
committerSheldon Hearn <sheldonh@FreeBSD.org>
Tue, 5 Feb 2002 15:20:02 +0000 (15:20 +0000)
commitfa3e900453f82c6c04fe01eafca419a13bf388b7
tree355b7d62a2c23bcd0453c0d88f4cc13157a71054
parentcc9f4eb939b79543e782673d51728c85aa97cdd3
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
contrib/telnet/telnetd/sys_term.c
crypto/telnet/telnetd/sys_term.c
libexec/telnetd/sys_term.c