mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
Catch KeyboardInterrupt, to avoid spewing error messages on Ctrl-C.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
1 parent
f8681f1674
commit
c174bece23
1 file changed
+3
@@ -791,6 +791,9 @@ def main(argv=sys.argv):
|
||||
else:
|
||||
err("Error connecting to xend: %s. Is xend running?" % ex[1])
|
||||
sys.exit(1)
|
||||
except KeyboardInterrupt:
|
||||
print "Interrupted."
|
||||
sys.exit(1)
|
||||
except IOError:
|
||||
if os.geteuid() != 0:
|
||||
err("Most commands need root access. Please try again as root.")
|
||||
|
||||