summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2001-05-17 20:07:19 +0000
committerBill Nottingham <notting@redhat.com>2001-05-17 20:07:19 +0000
commite54210ddba87dcdd5056a296b9e028e2f6817ebf (patch)
tree836c66b64646f0647bf45a3747c39104c4d19b05 /src
parent6ad403071789e16a6c6efde01722209ff639957a (diff)
fix MAXFAIL (#39231)
Diffstat (limited to 'src')
-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 42b13cd7..c0ffaac7 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));