Skip to contentSkip to conversation

libxl: correctly propagate errors from libxl_domain_resume

PATCH New Ian Campbell 1 participant 1 message Sep 28, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libxl: correctly propagate errors from libxl_domain_resume

# HG changeset patch
# User Ian Campbell <[email protected]>
# Date 1317224719 -3600
# Node ID f63f089585652829ec3816590292fde32ee8fbfe # Parent 5f25a693b738d2578e8803ba7ee49da1f5495a03
libxl: correctly propagate errors from libxl_domain_resume

currently it return success no matter what.

tools/libxl/libxl.c +1 -1
diff -r 5f25a693b738 -r f63f08958565 tools/libxl/libxl.c
@@ -261,7 +261,7 @@ int libxl_domain_resume(libxl_ctx *ctx, 
     }
 out:
     libxl__free_all(&gc);
-    return 0;
+    return rc;
 }
 
 /*