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

[PATCH] Clear rather than remove control/feature-XXX keys.



These keys should stick around when disabled since they're present at
boot. This also fixes an issue where the keys are unable to be written
on wake from S3 or S4.

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

diff --git a/src/xenagent/service.cpp b/src/xenagent/service.cpp
index 3630240..e71059c 100644
--- a/src/xenagent/service.cpp
+++ b/src/xenagent/service.cpp
@@ -331,10 +331,10 @@ void CXenIfaceCreator::StopShutdownWatch()
     if (!m_ctxt_shutdown)
         return;
 
-    m_device->StoreRemove("control/feature-poweroff");
-    m_device->StoreRemove("control/feature-reboot");
-    m_device->StoreRemove("control/feature-s3");
-    m_device->StoreRemove("control/feature-s4");
+    m_device->StoreWrite("control/feature-poweroff", "");
+    m_device->StoreWrite("control/feature-reboot", "");
+    m_device->StoreWrite("control/feature-s3", "");
+    m_device->StoreWrite("control/feature-s4", "");
 
     m_device->StoreRemoveWatch(m_ctxt_shutdown);
     m_ctxt_shutdown = NULL;
-- 
2.20.1




 


Rackspace

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