aboutsummaryrefslogtreecommitdiffstats
path: root/src/ppp-watch.c
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2001-05-17 20:07:39 +0000
committerBill Nottingham <notting@redhat.com>2001-05-17 20:07:39 +0000
commitc9aca8768593729e45652eb476f6b7ef7790c7f0 (patch)
tree5491eb271cee4f3437c2761b2a6e0fbd76cd9a21 /src/ppp-watch.c
parent537409bdd199b74688869c9ef329a519cb369612 (diff)
downloadinitscripts-c9aca8768593729e45652eb476f6b7ef7790c7f0.tar
initscripts-c9aca8768593729e45652eb476f6b7ef7790c7f0.tar.gz
initscripts-c9aca8768593729e45652eb476f6b7ef7790c7f0.tar.bz2
initscripts-c9aca8768593729e45652eb476f6b7ef7790c7f0.tar.xz
initscripts-c9aca8768593729e45652eb476f6b7ef7790c7f0.zip
fix MAXFAIL (#39231)
Diffstat (limited to 'src/ppp-watch.c')
-rw-r--r--src/ppp-watch.c7
1 files changed, 1 insertions, 6 deletions
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));