direct-io.hg

changeset 7591:28face899030

Catch KeyboardInterrupt, to avoid spewing error messages on Ctrl-C.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author emellor@leeni.uk.xensource.com
date Tue Nov 01 15:57:19 2005 +0100 (2005-11-01)
parents 3a3b2f8fbb60
children 99f4ba74763e
files tools/python/xen/xm/main.py
line diff
     1.1 --- a/tools/python/xen/xm/main.py	Tue Nov 01 15:24:47 2005 +0100
     1.2 +++ b/tools/python/xen/xm/main.py	Tue Nov 01 15:57:19 2005 +0100
     1.3 @@ -791,6 +791,9 @@ def main(argv=sys.argv):
     1.4              else:
     1.5                  err("Error connecting to xend: %s.  Is xend running?" % ex[1])
     1.6              sys.exit(1)
     1.7 +        except KeyboardInterrupt:
     1.8 +            print "Interrupted."
     1.9 +            sys.exit(1)
    1.10          except IOError:
    1.11              if os.geteuid() != 0:
    1.12                  err("Most commands need root access.  Please try again as root.")