From c9aca8768593729e45652eb476f6b7ef7790c7f0 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 17 May 2001 20:07:39 +0000 Subject: fix MAXFAIL (#39231) --- src/ppp-watch.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/ppp-watch.c') diff --git a/src/ppp-watch.c b/src/ppp-watch.c index cf22c68a..fec18d1a 100644 --- a/src/ppp-watch.c +++ b/src/ppp-watch.c @@ -766,13 +766,8 @@ main(int argc, char **argv) { } if ( maxfail != 0 ) { dialCount++; - if ( dialCount < maxfail ) { - fork_exec(FALSE, IFUP_PPP, "daemon", device, boot); - } else { + if ( dialCount >= maxfail ) failureExit(WEXITSTATUS(status)); - } - } else { - fork_exec(FALSE, IFUP_PPP, "daemon", device, boot); } } else { failureExit(WEXITSTATUS(status)); -- cgit v1.2.1