Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[vdr] Exit status (was: Re: Re: VDR version 1.2.3 pre-release)
Am Sonntag, 17. August 2003 16:17 schrieb Klaus Schmidinger:
> Steffen Barszus wrote:
> > Am Sonntag, 17. August 2003 15:00 schrieb Klaus Schmidinger:
> > > If nobody finds any serious problems with this new version I'd like
> > > to officially release it by wednesday.
> >
> > Hi Klaus. I have tried to find some information on the exit codes of vdr.
> > Does the exit codes differ if the reasons for terminating of vdr are
> > different ?
>
> man vdr -> "EXIT STATUS"
stupid me :o/. Thanks
> > What I think of is, if vdr quits because f.i. a plugin could not be
> > loaded. Since runvdr checks if exitcode != 0 => restart, it would be good
> > to catch non recoverable errors like misconfiguration with a different
> > exitcode, otherwise we would get a infinite loop ... difficult to catch,
> > beside using error handling in runvdr. Would something like this be
> > possible ? Or is it implemented and I'm to stupid to see it ?
>
> Yes, actually runvdr should rather check for '1' and only stay in the loop
> for that value.
Yep, agree.
> Could you please try
>
> if test $? -ne 1; then exit; fi
>
> instead of
>
> if test $? -eq 0; then exit; fi
Yep works perfect. Thanks for the pointer. I will read better the next time.
This should be changed in runvdr.
Greets
Steffen
--
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe vdr" as subject.
Home |
Main Index |
Thread Index