aboutsummaryrefslogtreecommitdiffstats
path: root/tools/examples/xc_dom_control.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/examples/xc_dom_control.py')
-rwxr-xr-xtools/examples/xc_dom_control.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/examples/xc_dom_control.py b/tools/examples/xc_dom_control.py
index 877afa53d1..2da4ddaf7b 100755
--- a/tools/examples/xc_dom_control.py
+++ b/tools/examples/xc_dom_control.py
@@ -136,11 +136,13 @@ elif cmd == 'suspend':
pid = int(fd.readline())
os.kill(pid, signal.SIGTERM)
+ """
xc.domain_stop( dom=dom )
-
+ XXX
while not xc.domain_getinfo( first_dom=dom, max_doms=1 )[0]['stopped']:
print "Sleep..."
time.sleep(0.001);
+ """
rc = xc.linux_save( dom=dom, state_file=file, progress=1)
if rc == 0 : xc.domain_destroy( dom=dom, force=1 )