aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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 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));