summaryrefslogtreecommitdiff
path: root/vdr.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2008-09-06 11:10:17 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2008-09-06 11:10:17 +0200
commit5da044b4ae504e15de7acd09f0ebec5b41b70c78 (patch)
tree5ece06f486a91e1e83ad107acff54acb03b109d0 /vdr.c
parentda3939cb10356c65d4ecaa378f0b22336c6bbb84 (diff)
downloadvdr-5da044b4ae504e15de7acd09f0ebec5b41b70c78.tar.gz
vdr-5da044b4ae504e15de7acd09f0ebec5b41b70c78.tar.bz2
Fixed a problem with calling isyslog() from within the SignalHandler()
Diffstat (limited to 'vdr.c')
-rw-r--r--vdr.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/vdr.c b/vdr.c
index 5ea62d69..728aec5f 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 1.313 2008/03/14 13:22:39 kls Exp $
+ * $Id: vdr.c 1.313.1.1 2008/09/06 11:07:52 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;
@@ -1288,9 +1287,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)