mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
bitkeeper revision 1.1549 (429459dd8Wdn9xpYhxSGQBJEie8pXA)
XendDomainInfo.py, XendDomain.py: Disable shutdown timeout for suspend. Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
This commit is contained in:
1 parent
5164002e4d
commit
72dd10c44d
2 files changed
+2
-2
No files matched your search
@@ -402,7 +402,7 @@ class XendDomain:
|
||||
if reason == 'halt':
|
||||
reason = 'poweroff'
|
||||
val = dominfo.shutdown(reason, key=key)
|
||||
if reason != 'sysrq':
|
||||
if not reason in ['suspend', 'sysrq']:
|
||||
self.domain_shutdowns()
|
||||
return val
|
||||
|
||||
|
||||
@@ -1136,7 +1136,7 @@ class XendDomainInfo:
|
||||
if self.channel:
|
||||
msg = messages.packMsg(msgtype, extra)
|
||||
self.channel.writeRequest(msg)
|
||||
if reason != 'sysrq':
|
||||
if not reason in ['suspend', 'sysrq']:
|
||||
self.shutdown_pending = {'start':time.time(), 'reason':reason,
|
||||
'key':key}
|
||||
|
||||
|
||||