Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[vdr] Re: Annoying EMERGENCY EXITs
Rene Bartsch wrote:
>
> Hi,
>
> we have a nice weather out here with lightnings.
>
> This causes VDR to restart and reload the driver once per minute for the
> last hour! This also causes high load on the server up to 100% (zig-zag
> scanning from driver up to 40%, insmodding 90 %, ...)
>
> So I think it is important to overwork the error-handling in VDR.
>
> VDR should differ which kind of error it has. I think only one out of
> 200 hundred restarts is really caused by the driver.
Well, simply change cThread::EmergencyExit() to
bool cThread::EmergencyExit(bool Request)
{
if (!Request)
return emergencyExitRequested;
esyslog("initiating emergency exit");
return false; // <--------- insert this line
return emergencyExitRequested = true; // yes, it's an assignment, not a comparison!
}
That way you'll still see when VDR would have requested an emergency
exit, but won't let it actually do it.
Let's know the outcome.
Klaus
--
_______________________________________________________________
Klaus Schmidinger Phone: +49-8635-6989-10
CadSoft Computer GmbH Fax: +49-8635-6989-40
Hofmark 2 Email: kls@cadsoft.de
D-84568 Pleiskirchen, Germany URL: www.cadsoft.de
_______________________________________________________________
--
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe vdr" as subject.
Home |
Main Index |
Thread Index