From e0d3e2336fe7d2d0ecf0bb64777ee25ebd2ce924 Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Wed, 9 Apr 1997 17:35:54 +0000 Subject: Ignore SIGPIPE or any user can quit ppp just telnetting to it and quitting telnet immediately (while phone number dialed) Log client connection/disconnection with PHASE_BIT now. Add more error recovery on client disconnection --- usr.sbin/ppp/command.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'usr.sbin/ppp/command.c') diff --git a/usr.sbin/ppp/command.c b/usr.sbin/ppp/command.c index 223cfa03fb403..decf4f50b37c7 100644 --- a/usr.sbin/ppp/command.c +++ b/usr.sbin/ppp/command.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: command.c,v 1.35 1997/03/17 14:47:56 ache Exp $ + * $Id: command.c,v 1.36 1997/03/24 16:01:46 ache Exp $ * */ #include @@ -594,6 +594,7 @@ char **argv; Cleanup(EX_NORMAL); mode &= ~MODE_INTER; } else { + LogPrintf(LOG_PHASE_BIT, "client connection closed.\n"); VarLocalAuth = LOCAL_NO_AUTH; close(netfd); close(1); -- cgit v1.3