ia64/xen-unstable

changeset 19517:47e836fc59de

xm: handle error in auxbin gracefully

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Apr 07 14:24:53 2009 +0100 (2009-04-07)
parents ac21e640cc83
children d9de5cc2b0bc
files tools/python/xen/util/auxbin.py
line diff
     1.1 --- a/tools/python/xen/util/auxbin.py	Tue Apr 07 11:04:27 2009 +0100
     1.2 +++ b/tools/python/xen/util/auxbin.py	Tue Apr 07 14:24:53 2009 +0100
     1.3 @@ -35,7 +35,11 @@ def execute(exe, args = None):
     1.4      a = [ exepath ]
     1.5      if args:
     1.6          a.extend(args)
     1.7 -    os.execv(exepath, a)
     1.8 +    try:
     1.9 +        os.execv(exepath, a)
    1.10 +    except OSError, exn:
    1.11 +        print exepath, ": ", exn
    1.12 +        sys.exit(1)
    1.13  
    1.14  
    1.15  def pathTo(exe):