summaryrefslogtreecommitdiff
path: root/shutdown.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2007-11-25 14:20:03 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2007-11-25 14:20:03 +0100
commitade33990f5b05ecf1446c93eb6bc5d93bbb3d8b7 (patch)
tree8ad5c33123575a50aabd7acb8b05e6b91e6573f8 /shutdown.c
parenta97119d0b44b52b098de0aa4a4f38939bc4bba9b (diff)
downloadvdr-ade33990f5b05ecf1446c93eb6bc5d93bbb3d8b7.tar.gz
vdr-ade33990f5b05ecf1446c93eb6bc5d93bbb3d8b7.tar.bz2
Implemented setup option "Miscellaneous/Emergency exit"
Diffstat (limited to 'shutdown.c')
-rw-r--r--shutdown.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/shutdown.c b/shutdown.c
index 4fde5440..bf548746 100644
--- a/shutdown.c
+++ b/shutdown.c
@@ -6,7 +6,7 @@
*
* Original version written by Udo Richter <udo_richter@gmx.de>.
*
- * $Id: shutdown.c 1.2 2007/10/19 14:33:40 kls Exp $
+ * $Id: shutdown.c 1.3 2007/11/25 13:49:27 kls Exp $
*/
#include "shutdown.h"
@@ -95,9 +95,13 @@ cShutdownHandler::~cShutdownHandler()
void cShutdownHandler::RequestEmergencyExit(void)
{
- esyslog("initiating emergency exit");
- emergencyExitRequested = true;
- Exit(1);
+ if (Setup.EmergencyExit) {
+ esyslog("initiating emergency exit");
+ emergencyExitRequested = true;
+ Exit(1);
+ }
+ else
+ dsyslog("emergency exit request ignored according to setup");
}
void cShutdownHandler::CheckManualStart(int ManualStart)