diff options
author | ache <ache@FreeBSD.org> | 1997-04-09 17:35:54 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1997-04-09 17:35:54 +0000 |
commit | 9949bd676e67df3010077d806ac69db56f472ff7 (patch) | |
tree | 94d218f7e9f708d3c068b335158fc2f7713a0974 /usr.sbin/ppp/command.c | |
parent | 8c5b669d734fddf7f8d8e0ab0ff8dbda2c5faafc (diff) | |
download | FreeBSD-src-9949bd676e67df3010077d806ac69db56f472ff7.zip FreeBSD-src-9949bd676e67df3010077d806ac69db56f472ff7.tar.gz |
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
Diffstat (limited to 'usr.sbin/ppp/command.c')
-rw-r--r-- | usr.sbin/ppp/command.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/ppp/command.c b/usr.sbin/ppp/command.c index 223cfa0..decf4f5 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 <sys/types.h> @@ -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); |