diff options
author | brian <brian@cvs.openbsd.org> | 1998-01-10 21:50:57 +0000 |
---|---|---|
committer | brian <brian@cvs.openbsd.org> | 1998-01-10 21:50:57 +0000 |
commit | 6b759d14c5c7be852b317e2c930c4569fc568c93 (patch) | |
tree | eca8f3f826eae8240db029d5b8252afd6af5faba /usr.sbin/ppp | |
parent | e3610f876ee6f15e22c5c74f15c6e5036af2fa14 (diff) |
Pause according to the redial setting when dialing manually.
Pointed out by: Berend de Boer <berend@compuserve.com>
Diffstat (limited to 'usr.sbin/ppp')
-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 20620341122..9c9852f0f46 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.20 1998/01/05 01:39:04 brian Exp $ + * $Id: command.c,v 1.21 1998/01/10 21:50:56 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) { |