From d07e3829f7c44d713b2677ef73f864af80b3dea3 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Mon, 13 May 2002 18:00:00 +0200 Subject: Version 1.1.2 - Changed the cPlugin::Start() function to return a boolean value that indicates if the plugin will not be able to perform its task (suggested by Stefan Huelswitt). - Added the cPlugin::Housekeeping() function (suggested by Stefan Huelswitt). - Updated channels.conf.cable (thanks to Uwe Scheffler). - Added 'insert' capabilities to cList (suggested by Stefan Huelswitt). - Changed the 'package' target in the plugin's Makefile to produce a package that expands to a directory with just the plugin name and version number (suggested by Stefan Huelswitt). - Made the config directory available to plugins (suggested by Stefan Huelswitt). See PLUGINS.html, section "Configuration files" for details. - Improved the [eid]syslog() macros, so that the LOG_... macros don't need to be given any more. --- thread.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'thread.c') diff --git a/thread.c b/thread.c index a7e77f1..925fc4d 100644 --- a/thread.c +++ b/thread.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: thread.c 1.19 2002/03/09 12:05:44 kls Exp $ + * $Id: thread.c 1.20 2002/05/13 16:32:09 kls Exp $ */ #include "thread.h" @@ -153,7 +153,7 @@ void cThread::Cancel(int WaitSeconds) return; usleep(10000); } - esyslog(LOG_ERR, "ERROR: thread %d won't end (waited %d seconds) - cancelling it...", threadPid, WaitSeconds); + esyslog("ERROR: thread %d won't end (waited %d seconds) - cancelling it...", threadPid, WaitSeconds); } pthread_cancel(thread); } @@ -175,18 +175,18 @@ void cThread::RaisePanic(void) } lastPanic = time(NULL); if (panicLevel > MAXPANICLEVEL) { - esyslog(LOG_ERR, "ERROR: max. panic level exceeded"); + esyslog("ERROR: max. panic level exceeded"); EmergencyExit(true); } else - dsyslog(LOG_INFO, "panic level: %d", panicLevel); + dsyslog("panic level: %d", panicLevel); } bool cThread::EmergencyExit(bool Request) { if (!Request) return emergencyExitRequested; - esyslog(LOG_ERR, "initiating emergency exit"); + esyslog("initiating emergency exit"); return emergencyExitRequested = true; // yes, it's an assignment, not a comparison! } -- cgit v1.2.3