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.

Signed-off-by: Mark Williamson <mark.williamson@cl.cam.ac.uk>
This commit is contained in:
Keir Fraser committed 2007-12-12 10:04:29 +00:00
1 parent 012e2baf87
commit 9b64cdda45
1 file changed
+1 -1
+1 -1
View File
@@ -1833,7 +1833,7 @@ def xm_debug_keys(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)
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.