diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2007-11-25 14:20:03 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2007-11-25 14:20:03 +0100 |
commit | ade33990f5b05ecf1446c93eb6bc5d93bbb3d8b7 (patch) | |
tree | 8ad5c33123575a50aabd7acb8b05e6b91e6573f8 /shutdown.c | |
parent | a97119d0b44b52b098de0aa4a4f38939bc4bba9b (diff) | |
download | vdr-ade33990f5b05ecf1446c93eb6bc5d93bbb3d8b7.tar.gz vdr-ade33990f5b05ecf1446c93eb6bc5d93bbb3d8b7.tar.bz2 |
Implemented setup option "Miscellaneous/Emergency exit"
Diffstat (limited to 'shutdown.c')
-rw-r--r-- | shutdown.c | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -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) |