Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 39231 - The MAXFAIL patch for ppp-watch from bug #10639 is broken (fix available)
The MAXFAIL patch for ppp-watch from bug #10639 is broken (fix available)
Product: Red Hat Linux
Classification: Retired
Component: initscripts (Show other bugs)
All Linux
medium Severity high
: ---
: ---
Assigned To: Bill Nottingham
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2001-05-05 16:39 EDT by Alex Kanavin
Modified: 2014-03-16 22:20 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-05-12 18:35:27 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
A fix for MAXFAIL (491 bytes, patch)
2001-05-05 16:40 EDT, Alex Kanavin
no flags Details | Diff

  None (edit)
Description Alex Kanavin 2001-05-05 16:39:30 EDT
The patch to make ppp-watch honor MAXFAIL option is broken. It calls
ifup-ppp the second time immidiately after it has already been called.

a) forced redial makes ppp-watch exit prematurely
b) busy line makes ppp-watch give up after just two attempts
c) ppp-watch exits after first disconnect and ifdown does not work
afterwards - pppd has to be killed by hand

All this because the second ifup-ppp reports a "can't lock port" error to
ppp-watch making it exit with an error.

I've created a very simple patch to fix this and I'd really appreciate if
it was integrated into rawhide (or even better, pushed as an errata, if you
consider it severe enough).
Comment 1 Alex Kanavin 2001-05-05 16:40:40 EDT
Created attachment 17469 [details]
A fix for MAXFAIL
Comment 2 arjen 2001-05-12 14:24:33 EDT
The current implementation doesn't seem to allow for infinite retries.
To fix this one could allow for negative MAXFAIL values which should
be interpreted as: REALLY PERSIST, keep on trying.

The test after incrementing dialCount should be changed from:
if ( dialCount < maxfail ) {
if ( maxfail < 0 || dialCount < maxfail ) {
Comment 3 Alex Kanavin 2001-05-12 18:35:23 EDT
Infinite retries are actually possible without your proposed change: simply set
the MAXFAIL to 0 (zero) or omit it alltogether from your ifcfg file. That's
because in the sources all this maxfail stuff is prefixed by 

if ( maxfail != 0 ) {
Comment 4 Bill Nottingham 2001-05-17 16:05:11 EDT
Thanks, the fix will be in initscripts-5.88-1.
Comment 5 R.K.Aa. 2001-06-19 02:53:37 EDT
Any hint as to when initscripts-5.88-1 will be available?
Comment 6 bug 2001-07-03 01:40:07 EDT
Where is this errata? PERSIST=yes doesn't work as it should (I assume because 
of this bug) on a number of my servers and it's giving me major headaches.

Note You need to log in before you can comment on or make changes to this bug.