diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2004-06-10 13:22:08 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2004-06-10 13:22:08 +0200 |
commit | 3e72d0cc0b5d960a6716eb72fa5e8a7355b271cb (patch) | |
tree | 741f6bdc695cc2f4bd9dd85cf6827dcff282da79 /vdr.c | |
parent | def0c7aaa0b79d0251758e6645c3edd03107b367 (diff) | |
download | vdr-3e72d0cc0b5d960a6716eb72fa5e8a7355b271cb.tar.gz vdr-3e72d0cc0b5d960a6716eb72fa5e8a7355b271cb.tar.bz2 |
Checking for NPTL at program start
Diffstat (limited to 'vdr.c')
-rw-r--r-- | vdr.c | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -22,7 +22,7 @@ * * The project's page is at http://www.cadsoft.de/vdr * - * $Id: vdr.c 1.181 2004/05/16 10:12:43 kls Exp $ + * $Id: vdr.c 1.182 2004/06/10 13:22:08 kls Exp $ */ #include <getopt.h> @@ -84,6 +84,17 @@ static void Watchdog(int signum) 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 2; + } + } +#endif + // Save terminal settings: struct termios savedTm; |