WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] Catch KeyboardInterrupt, to avoid spewing error messages

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Catch KeyboardInterrupt, to avoid spewing error messages on Ctrl-C.
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 01 Nov 2005 17:36:15 +0000
Delivery-date: Tue, 01 Nov 2005 17:35:01 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Catch KeyboardInterrupt, to avoid spewing error messages on Ctrl-C., Xen patchbot -unstable <=