[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 2/3] No longer terminate xenagent for S3/S4 transition.



Signed-off-by: Troy Crosley <troycrosley@xxxxxxxxx>
---
 src/xenagent/service.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/xenagent/service.cpp b/src/xenagent/service.cpp
index e595093..3630240 100644
--- a/src/xenagent/service.cpp
+++ b/src/xenagent/service.cpp
@@ -224,7 +224,7 @@ bool CXenIfaceCreator::CheckShutdown()
         if (!SetSystemPowerState(FALSE, FALSE)) {
             CXenAgent::Log("SetSystemPowerState failed %08x\n", 
GetLastError());
         }
-        return true;
+        return false;
     } else if (type == "s3") {
         m_device->StoreWrite("control/shutdown", "");
         m_agent.EventLog(EVENT_XENUSER_S3);
@@ -233,7 +233,7 @@ bool CXenIfaceCreator::CheckShutdown()
         if (!SetSuspendState(FALSE, TRUE, FALSE)) {
             CXenAgent::Log("SetSuspendState failed %08x\n", GetLastError());
         }
-        return true;
+        return false;
     }
 
     return false;
-- 
2.20.1




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.