[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] Catch KeyboardInterrupt, to avoid spewing error messages on Ctrl-C.



# HG changeset patch
# User emellor@xxxxxxxxxxxxxxxxxxxxxx
# Node ID 28face8990308eb88ccf904bff9881b43e2b838d
# Parent  3a3b2f8fbb6084cddb1d63301b9493a082fbd66a
Catch KeyboardInterrupt, to avoid spewing error messages on Ctrl-C.

Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>

diff -r 3a3b2f8fbb60 -r 28face899030 tools/python/xen/xm/main.py
--- a/tools/python/xen/xm/main.py       Tue Nov  1 14:24:47 2005
+++ b/tools/python/xen/xm/main.py       Tue Nov  1 14:57:19 2005
@@ -791,6 +791,9 @@
             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.")

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.