summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2008-09-06 11:26:01 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2008-09-06 11:26:01 +0200
commit4f9b3175d0ce2f5e4ee0e608eb4d90de040df41c (patch)
tree9843ea4bd35624fa309f7b4ea315087055059442
parent4844235c772516a36ad79dbf2c0beebef317dd4b (diff)
downloadvdr-4f9b3175d0ce2f5e4ee0e608eb4d90de040df41c.tar.gz
vdr-4f9b3175d0ce2f5e4ee0e608eb4d90de040df41c.tar.bz2
Fixed a problem with calling isyslog() from within the SignalHandler()
-rw-r--r--CONTRIBUTORS1
-rw-r--r--HISTORY4
-rw-r--r--vdr.c7
3 files changed, 9 insertions, 3 deletions
diff --git a/CONTRIBUTORS b/CONTRIBUTORS
index 408f5108..c89e26ad 100644
--- a/CONTRIBUTORS
+++ b/CONTRIBUTORS
@@ -1585,6 +1585,7 @@ Udo Richter <udo_richter@gmx.de>
for making housekeeping wait for a while after a replay has ended
for fixing error handling in cCuttingThread::Action()
for suppressing the automatic shutdown if the remote control is currently disabled
+ for fixing a problem with calling isyslog() from within the SignalHandler()
Sven Kreiensen <svenk@kammer.uni-hannover.de>
for his help in keeping 'channels.conf.terr' up to date
diff --git a/HISTORY b/HISTORY
index 92daacc9..293dddb1 100644
--- a/HISTORY
+++ b/HISTORY
@@ -5806,6 +5806,8 @@ Video Disk Recorder Revision History
now follows the VPID and optional PPID, separated by an '=' sign.
- Updated the sources.conf file (thanks to Oleg Roitburd).
- Fixed a possible integer overflow in GetAbsTime() (thanks to Alexander Rieger).
+- Fixed a problem with calling isyslog() from within the SignalHandler() (thanks
+ to Udo Richter).
2008-09-06: Version 1.6.0-2
@@ -5818,3 +5820,5 @@ Video Disk Recorder Revision History
fontconfig (suggested by Edgar Toernig).
- Updated the sources.conf file (thanks to Oleg Roitburd).
- Fixed a possible integer overflow in GetAbsTime() (thanks to Alexander Rieger).
+- Fixed a problem with calling isyslog() from within the SignalHandler() (thanks
+ to Udo Richter).
diff --git a/vdr.c b/vdr.c
index 6d74845a..1e82be76 100644
--- a/vdr.c
+++ b/vdr.c
@@ -22,7 +22,7 @@
*
* The project's page is at http://www.cadsoft.de/vdr
*
- * $Id: vdr.c 2.1 2008/05/03 10:16:41 kls Exp $
+ * $Id: vdr.c 2.2 2008/09/06 11:24:21 kls Exp $
*/
#include <getopt.h>
@@ -141,7 +141,6 @@ static bool SetKeepCaps(bool On)
static void SignalHandler(int signum)
{
- isyslog("caught signal %d", signum);
switch (signum) {
case SIGPIPE:
break;
@@ -1285,9 +1284,11 @@ Exit:
ReportEpgBugFixStats();
if (WatchdogTimeout > 0)
dsyslog("max. latency time %d seconds", MaxLatencyTime);
- isyslog("exiting, exit code %d", ShutdownHandler.GetExitCode());
+ if (LastSignal)
+ isyslog("caught signal %d", LastSignal);
if (ShutdownHandler.EmergencyExitRequested())
esyslog("emergency exit!");
+ isyslog("exiting, exit code %d", ShutdownHandler.GetExitCode());
if (SysLogLevel > 0)
closelog();
if (HasStdin)