diff options
author | brian <brian@FreeBSD.org> | 1998-01-10 21:51:31 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1998-01-10 21:51:31 +0000 |
commit | 06470b445f1f83470b08d199bf7d36e0504af448 (patch) | |
tree | 9f2265bb62f3033553c35cafe8683192e9950190 | |
parent | 76bf3c3e0e912e1f500550c97869c9c77da8c26d (diff) | |
download | FreeBSD-src-06470b445f1f83470b08d199bf7d36e0504af448.zip FreeBSD-src-06470b445f1f83470b08d199bf7d36e0504af448.tar.gz |
Pause according to the redial setting when dialing manually.
Pointed out by: Berend de Boer <berend@compuserve.com>
-rw-r--r-- | usr.sbin/ppp/command.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.sbin/ppp/command.c b/usr.sbin/ppp/command.c index 5dfb5d3..846bf20 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.124 1997/12/30 23:22:27 brian Exp $ + * $Id: command.c,v 1.125 1998/01/05 01:35:18 brian Exp $ * */ #include <sys/param.h> @@ -177,6 +177,11 @@ DialCommand(struct cmdargs const *arg) tries = 0; do { + if (tries) { + LogPrintf(LogPHASE, "Enter pause (%d) for redialing.\n", + VarRedialNextTimeout); + nointr_sleep(VarRedialNextTimeout); + } if (VarTerm) fprintf(VarTerm, "Dial attempt %u of %d\n", ++tries, VarDialTries); if (OpenModem() < 0) { |