Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: Annoying EMERGENCY EXITs



Am Die, 2003-06-10 um 22.20 schrieb Klaus Schmidinger:
> 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.
> 

Ok, I'll check it when I'm home at weekend.

In which file is it (didn't find fitting code in vdr.c - only two
similar ones I'm not sure they're the correct ones)?

I like VDR very much (great work!), but that restarting has broken a lot
of recordings with no reason.

And at my parents it's also a problem. As I'm not living with them, I've
edited runvdr not to reload the driver but to reboot to get the machine
clean up after errors.

But this results in continous rebooting (Floppy, HDD, CD-ROM spinning up
in the living-room) when weather is bad.

So VDR should check itself and if it is running well it shouldn't
restart but check the state of the driver. If driver has crashed it
should reload the driver only without restarting itself. And if both are
running fine it should do nothing and wait until reception is back
(maybe some info "DVB xy unavailable" in logs and on OSD)

In case one card fails but enough cards are left for recording, VDR also
shouldn't restart but wait for the recordings to end.

Rene



-- 
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe vdr" as subject.



Home | Main Index | Thread Index