mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
xm: handle error in auxbin gracefully
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
This commit is contained in:
1 parent
6cc1002a77
commit
bf70c78677
1 file changed
+5
-1
@@ -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):
|
||||
|
||||