Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[vdr] Re: Avoiding NPTL problems
Klaus Schmidinger wrote:
>
> ...
> I'm planning on adding a few lines
> of code to VDR/vdr.c, which check for the presence of NPTL and, in case
> it is, exit the program and tell the user to do 'export LD_ASSUME_KERNEL=2.4.1'
> before starting vdr.
> ...
> --- vdr.c 2004/05/16 10:12:43 1.181
> +++ vdr.c 2004/06/10 12:58:48
> @@ -84,6 +84,17 @@
>
> int main(int argc, char *argv[])
> {
> +#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, "vdr: please turn off NPTL by setting 'export LD_ASSUME_KERNEL=2.4.1' before starting vdr");
> + return 1;
This should actually be 'return 2;'.
Klaus
Home |
Main Index |
Thread Index