diff options
author | Brian Somers <brian@FreeBSD.org> | 1998-01-10 21:51:31 +0000 |
---|---|---|
committer | Brian Somers <brian@FreeBSD.org> | 1998-01-10 21:51:31 +0000 |
commit | 86ca062379d82466b3dc414470301e9cc3758276 (patch) | |
tree | 63e336572741fd169b263b1a2215d40e398d3ff4 /usr.sbin | |
parent | 94aacc4fb81fac83056d8e3c422a573a3c994123 (diff) | |
download | src-86ca062379d82466b3dc414470301e9cc3758276.tar.gz src-86ca062379d82466b3dc414470301e9cc3758276.zip |
Pause according to the redial setting when dialing manually.
Pointed out by: Berend de Boer <berend@compuserve.com>
Notes
Notes:
svn path=/head/; revision=32403
Diffstat (limited to 'usr.sbin')
-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 5dfb5d3ad225..846bf20d4c40 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) { |