From patchwork Sun Jun 10 12:21:48 2007 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petri Hintukainen X-Patchwork-Id: 12472 Received: from gw03.mail.saunalahti.fi ([195.197.172.111]) by www.linuxtv.org with esmtp (Exim 4.63) (envelope-from ) id 1HxMQi-0001ZD-5V for vdr@linuxtv.org; Sun, 10 Jun 2007 14:22:00 +0200 Received: from [192.168.0.2] (a91-153-143-21.elisa-laajakaista.fi [91.153.143.21]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by gw03.mail.saunalahti.fi (Postfix) with ESMTP id E1FFE216243 for ; Sun, 10 Jun 2007 15:21:55 +0300 (EEST) From: Petri Hintukainen To: VDR Mailing List In-Reply-To: <20070610123113.2b7c3202.clemens@1541.org> References: <466A80E5.40502@gmx.de> <1181418045.7288.143.camel@core> <20070610123113.2b7c3202.clemens@1541.org> Date: Sun, 10 Jun 2007 15:21:48 +0300 Message-Id: <1181478108.7288.158.camel@core> Mime-Version: 1.0 X-Mailer: Evolution 2.8.3 Subject: Re: [vdr] PANIC: watchdog timer expired - exiting X-BeenThere: vdr@linuxtv.org X-Mailman-Version: 2.1.9 Precedence: list Reply-To: VDR Mailing List List-Id: VDR Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Jun 2007 12:22:00 -0000 Status: O X-Status: X-Keywords: X-UID: 13141 On Sun, 2007-06-10 at 12:31 +0200, Clemens Kirchgatterer wrote: > Petri Hintukainen wrote: > > > If clock is turned 2 minutes back in middle of this, the code will > > wait 120100 ms instead of 100ms ... Might cause some quite weird > > problems. I belive there's no way to change pthread_..._timedwait > > functions, but cTimeMs can be changed to use monotonic timers instead > > of gettimeofday (patch attached). > > just for the record, i think you have to change the Makefile to include > -lrt in the LIBS for the patch to work. That's right, that part was missing from the patch :( - Petri --- ../../vdr-1.4.5-orig/Makefile 2006-09-08 00:15:09.000000000 +0300 +++ ../../vdr-1.4.5/Makefile 2006-12-16 21:28:19.000000000 +0200 @@ -17,7 +17,7 @@ LSIDIR = ./libsi MANDIR = /usr/local/man BINDIR = /usr/local/bin -LIBS = -ljpeg -lpthread -ldl -lcap +LIBS = -ljpeg -lpthread -ldl -lcap -lrt INCLUDES = PLUGINDIR= ./PLUGINS