[RFC] Shutdown rewrite for 1.5.x, version 0.4
Commit Message
Udo Richter wrote:
> I've finished a fourth version of the shutdown rewrite. Again there are
> two patches available, one for VDR 1.5.0, and one with slight changes
> for 1.4.x.
>
> Changes:
> - Handle setup menu restart questions in cShutdown::ConfirmRestart()
> - Act differently on SIGHUP:
> Restart VDR like on setup menu restart, but dont ask questions.
Well, that was the intention. Next time I'll do it, promise! ;)
The attached patch fixes this and actually calls ConfirmRestart, not
ConfirmShutdown.
Beside that, things are getting close to land in VDR 1.5.x, so any last
minute bug hunting is welcome.
Cheers,
Udo
@@ -1169,7 +1169,7 @@
if (LastSignal == SIGHUP) {
LastSignal = 0;
// Confirm for any activity that blocks a restart
- if (!Shutdown.ConfirmShutdown(true))
+ if (!Shutdown.ConfirmRestart(true))
// Not confirmed, cancel.
break;
@@ -2726,7 +2726,7 @@
return osContinue;
// Confirm for any activity that blocks a restart
- if (!Shutdown.ConfirmShutdown(true))
+ if (!Shutdown.ConfirmRestart(true))
// Not confirmed, cancel.
return osContinue;