diff options
| author | Bill Nottingham <notting@redhat.com> | 2001-05-17 20:07:19 +0000 |
|---|---|---|
| committer | Bill Nottingham <notting@redhat.com> | 2001-05-17 20:07:19 +0000 |
| commit | e54210ddba87dcdd5056a296b9e028e2f6817ebf (patch) | |
| tree | 836c66b64646f0647bf45a3747c39104c4d19b05 /src | |
| parent | 6ad403071789e16a6c6efde01722209ff639957a (diff) | |
fix MAXFAIL (#39231)
Diffstat (limited to 'src')
| -rw-r--r-- | src/ppp-watch.c | 7 |
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)); |
