Output log line if Windows Update requires a reboot, as soon as a shutdown or
reboot has been requested, in addition to when the service shuts down. The
service shutdown will output its log line *after* the "Installing Windows
Updates" screen has completed during shutdown.
Signed-off-by: Owen Smith <owen.smith@citrix.com>
if (type == "poweroff") {
device->StoreWrite("control/shutdown", "");
m_agent->EventLog(EVENT_XENUSER_POWEROFF);
+ LogIfRebootPending();
AcquireShutdownPrivilege();
#pragma warning(suppress:28159) /* Consider using a design alternative... Rearchitect to avoid Reboot */
} else if (type == "reboot") {
device->StoreWrite("control/shutdown", "");
m_agent->EventLog(EVENT_XENUSER_REBOOT);
+ LogIfRebootPending();
AcquireShutdownPrivilege();
#pragma warning(suppress:28159) /* Consider using a design alternative... Rearchitect to avoid Reboot */
void CheckXenTime();
void CheckSuspend();
bool CheckSlateMode(std::string& mode);
+ void LogIfRebootPending();
private:
- void LogIfRebootPending();
void StartShutdownWatch(CXenIfaceDevice* device);
void StopShutdownWatch(CXenIfaceDevice* device);
void StartSlateModeWatch(CXenIfaceDevice* device);