Start xentop using os.system
PATCH 1/1 Start xentop using os.system
Start xentop using os.system instead of an exec call. No functional difference for "xm top" (other than the fact that the python interpreter hangs around longer) but avoids "xm shell" exiting when you quit from xentop - more shell-like behaviour.
Should be good for 3.2.
Cheers,
Mark
Signature · 4 lines
Dave: Just a question. What use is a unicyle with no seat? And no pedals! Mark: To answer a question with a question: What use is a skateboard? Dave: Skateboards have wheels. Mark: My wheel has a wheel!
# HG changeset patch
# User [email protected]
# Date 1197327985 0
# Node ID 8c46810ad1abd51f3f42c4c1149c26e6d462368f # Parent e1f1250c1d2c34f3a1908753c1752e7ec65b36a9 [TOOLS] Use os.system instead of exec to start xentop.
This makes no difference to the visible behaviour of "xm top" but avoids the whole of xm from quitting if you're in "xm shell". This provides the more intuitive behaviour of returning to the xm shell interface after leaving xm top.
tools/python/xen/xm/main.py +1 -1
@@ -1832,7 +1832,7 @@ def xm_top(args): def xm_top(args): arg_check(args, "top", 0) - os.execvp('xentop', ['xentop']) + os.system('xentop') def xm_dmesg(args): arg_check(args, "dmesg", 0, 1)
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel