aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-04-07 14:24:53 +0100
committerKeir Fraser <keir.fraser@citrix.com>2009-04-07 14:24:53 +0100
commitbf70c786774b46ceea11f88ab5fe416789532478 (patch)
tree2cb5e2779966cf0b633312185e6ffc79b29bc8b3
parent6cc1002a775bdf4d155aef6492bc486339096167 (diff)
downloadxen-bf70c786774b46ceea11f88ab5fe416789532478.tar.gz
xen-bf70c786774b46ceea11f88ab5fe416789532478.tar.bz2
xen-bf70c786774b46ceea11f88ab5fe416789532478.zip
xm: handle error in auxbin gracefully
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
-rw-r--r--tools/python/xen/util/auxbin.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/python/xen/util/auxbin.py b/tools/python/xen/util/auxbin.py
index 75e38a838e..e1830001bb 100644
--- a/tools/python/xen/util/auxbin.py
+++ b/tools/python/xen/util/auxbin.py
@@ -35,7 +35,11 @@ def execute(exe, args = None):
a = [ exepath ]
if args:
a.extend(args)
- os.execv(exepath, a)
+ try:
+ os.execv(exepath, a)
+ except OSError, exn:
+ print exepath, ": ", exn
+ sys.exit(1)
def pathTo(exe):