mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Fixed the shutdown timeout
This commit is contained in:
parent
dc5df40aa3
commit
7fb99e696f
@ -1776,3 +1776,6 @@ Christoph Haubrich <christoph1.haubrich@arcor.de>
|
|||||||
Pekka Mauno <pekka.mauno@iki.fi>
|
Pekka Mauno <pekka.mauno@iki.fi>
|
||||||
for fixing cSchedule::GetFollowingEvent() in case there is currently no present
|
for fixing cSchedule::GetFollowingEvent() in case there is currently no present
|
||||||
event running
|
event running
|
||||||
|
|
||||||
|
Alexander Wenzel <hondansx@gmx.de>
|
||||||
|
for fixing the shutdown timeout
|
||||||
|
1
HISTORY
1
HISTORY
@ -4429,3 +4429,4 @@ Video Disk Recorder Revision History
|
|||||||
- Fixed cDvbDevice::SetAudioBypass() in case setTransferModeForDolbyDigital is false
|
- Fixed cDvbDevice::SetAudioBypass() in case setTransferModeForDolbyDigital is false
|
||||||
(thanks to Werner Fink).
|
(thanks to Werner Fink).
|
||||||
- Updated 'sources.conf'.
|
- Updated 'sources.conf'.
|
||||||
|
- Fixed the shutdown timeout (thanks to Alexander Wenzel).
|
||||||
|
17
vdr.c
17
vdr.c
@ -22,7 +22,7 @@
|
|||||||
*
|
*
|
||||||
* The project's page is at http://www.cadsoft.de/vdr
|
* The project's page is at http://www.cadsoft.de/vdr
|
||||||
*
|
*
|
||||||
* $Id: vdr.c 1.249 2006/02/05 12:57:10 kls Exp $
|
* $Id: vdr.c 1.250 2006/03/19 13:29:49 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <getopt.h>
|
#include <getopt.h>
|
||||||
@ -1090,13 +1090,16 @@ int main(int argc, char *argv[])
|
|||||||
isyslog("executing '%s'", cmd);
|
isyslog("executing '%s'", cmd);
|
||||||
SystemExec(cmd);
|
SystemExec(cmd);
|
||||||
free(cmd);
|
free(cmd);
|
||||||
|
LastActivity = time(NULL) - Setup.MinUserInactivity * 60 + SHUTDOWNRETRY; // try again later
|
||||||
}
|
}
|
||||||
else if (WatchdogTimeout > 0) {
|
else {
|
||||||
alarm(WatchdogTimeout);
|
LastActivity = Now;
|
||||||
if (signal(SIGALRM, Watchdog) == SIG_IGN)
|
if (WatchdogTimeout > 0) {
|
||||||
signal(SIGALRM, SIG_IGN);
|
alarm(WatchdogTimeout);
|
||||||
}
|
if (signal(SIGALRM, Watchdog) == SIG_IGN)
|
||||||
LastActivity = time(NULL) - Setup.MinUserInactivity * 60 + SHUTDOWNRETRY; // try again later
|
signal(SIGALRM, SIG_IGN);
|
||||||
|
}
|
||||||
|
}
|
||||||
UserShutdown = false;
|
UserShutdown = false;
|
||||||
continue; // skip the rest of the housekeeping for now
|
continue; // skip the rest of the housekeeping for now
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user