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

[Xen-changelog] [xen-unstable] xm: handle error in auxbin gracefully



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1239110693 -3600
# Node ID 47e836fc59de1344279915774e1540015e7f7640
# Parent  ac21e640cc8359d60c5ac91aa7633451909b6a39
xm: handle error in auxbin gracefully

Signed-off-by: Christoph Egger <Christoph.Egger@xxxxxxx>
---
 tools/python/xen/util/auxbin.py |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletion(-)

diff -r ac21e640cc83 -r 47e836fc59de tools/python/xen/util/auxbin.py
--- a/tools/python/xen/util/auxbin.py   Tue Apr 07 11:04:27 2009 +0100
+++ b/tools/python/xen/util/auxbin.py   Tue Apr 07 14:24:53 2009 +0100
@@ -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):

_______________________________________________
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®.