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

[win-pv-devel] [PATCH] XENBUS_MONITOR: don't delete the registry value until a reboot is pending



If a reboot is requested whilst there is no active session then the
monitor will not be able to prompt for reboot. We need to leave the
registry value in place until we have prompted.

Signed-off-by: Paul Durrant <paul.durrant@xxxxxxxxxx>
---
 src/monitor/monitor.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/monitor/monitor.c b/src/monitor/monitor.c
index 9a4f4f9..739aaff 100644
--- a/src/monitor/monitor.c
+++ b/src/monitor/monitor.c
@@ -558,7 +558,8 @@ CheckRebootValue(
     if (!Context->RebootPending)
         PromptForReboot(Reboot);
 
-    (VOID) RegDeleteValue(Context->RequestKey, "Reboot");
+    if (Context->RebootPending)
+        (VOID) RegDeleteValue(Context->RequestKey, "Reboot");
 
 done:
     free(Reboot);
-- 
2.1.1


_______________________________________________
win-pv-devel mailing list
win-pv-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/cgi-bin/mailman/listinfo/win-pv-devel

 


Rackspace

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