Mailing List archive

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

[vdr] Re: VDR with NTPL



"C.Y.M." wrote:
> 
> ...
> I am currently trying to test out vdr with and without NPTL enabled so I
> changed the code in vdr.c like this (so vdr would startup without having to
> disable it):
> 
> #ifdef _CS_GNU_LIBPTHREAD_VERSION
>   // Check for NPTL and exit if present - VDR apparently doesn't run well
> with NPTL:
>   char LibPthreadVersion[128];
>   if (confstr(_CS_GNU_LIBPTHREAD_VERSION, LibPthreadVersion,
> sizeof(LibPthreadVersion)) > 0) {
>      if (strstr(LibPthreadVersion, "NPTL")) {
> //        fprintf(stderr, "\nvdr: please turn off NPTL by setting 'export
> LD_ASSUME_KERNEL=2.4.1' before starting VDR\n");
>         isyslog("Warning: NPTL is currently unsupported by VDR.  To remove
> this message, turn off NPTL by setting 'export LD_ASSUME_KERNEL=2.4.1'
> before starting VDR");
> //      return 2;
>         }
>      }
> #endif
> 
> The problem that I am now seeing is VDR will startup when I use "export
> LD_ASSUME_KERNEL=2.4.1" and not display the warning message in my syslog,
> but after a few hours, the warning message appears in the log.  Does that
> make any sense?  Why would the warning be displayed after a few hours of use
> and not during startup?  If I do not use "export LD_ASSUME_KERNEL=2.4.1" in
> the startup script, the warning is displayed immediately..

Since this code sequence is at the very beginning of the program, it can
only be executed _once_ at startup.

Maybe VDR restarts for some reason?
This should be visible in the log file.

BTW: please don't wrap lines when posting code.

Klaus




Home | Main Index | Thread Index