diff options
author | brian <brian@FreeBSD.org> | 1997-05-19 02:00:16 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1997-05-19 02:00:16 +0000 |
commit | ee01b280507bf1f39a39f9beb574b6653321fd1c (patch) | |
tree | e4d9b90f3eb2066eb4729a5a72f4efff2a30eec9 /usr.sbin/ppp/command.c | |
parent | 4f2495eff057ea8a9f8c638ee404521f89177a51 (diff) | |
download | FreeBSD-src-ee01b280507bf1f39a39f9beb574b6653321fd1c.zip FreeBSD-src-ee01b280507bf1f39a39f9beb574b6653321fd1c.tar.gz |
Mega update to sort out bad implementations
of reconnect & -background.
o Fix reconnect anomolies.
o Make reconnect apply to failed LQR hangups (& mention in man page).
o Make reconnect effective in -background mode.
o Listen on socket in -background mode.
o Try all phone numbers in -background mode.
o Insist on system arg in -background mode.
o Make a control-connection close command exit in -background mode.
o Output status message to stdout on exit of parent in -background mode.
o Don't notify parent of success too soon.
o Describe termination EX_* code.
o Miscelaneous diagnostic corrections.
o Remove redundant connect_time from modem.c.
o Don't repeatedly DownConnection().
Diffstat (limited to 'usr.sbin/ppp/command.c')
-rw-r--r-- | usr.sbin/ppp/command.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.sbin/ppp/command.c b/usr.sbin/ppp/command.c index 4e51046..be5b140 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.45 1997/05/10 23:46:29 ache Exp $ + * $Id: command.c,v 1.46 1997/05/14 01:18:50 brian Exp $ * */ #include <sys/types.h> @@ -108,6 +108,8 @@ IsInteractive() if (mode & MODE_DDIAL) mes = "Working in dedicated dial mode."; + else if (mode & MODE_BACKGROUND) + mes = "Working in background mode."; else if (mode & MODE_AUTO) mes = "Working in auto mode."; else if (mode & MODE_DIRECT) @@ -630,7 +632,9 @@ static int CloseCommand() { LcpClose(); - lostCarrier = 0; + reconnectCount = 0; + if (mode & MODE_BACKGROUND) + Cleanup(EX_NORMAL); return(1); } |