That function can return a whole slew of error codes. Translate them to EXIT_FAILURE.
Signed-off-by: Wei Liu <wei.l...@citrix.com> --- Cc: Ian Jackson <ian.jack...@eu.citrix.com> Cc: Julien Grall <julien.gr...@arm.com> Cc: Roger Pau Monn?? <roger....@citrix.com> --- tools/xl/xl_misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/xl/xl_misc.c b/tools/xl/xl_misc.c index 9037e2b2f0..9c6227af23 100644 --- a/tools/xl/xl_misc.c +++ b/tools/xl/xl_misc.c @@ -182,7 +182,7 @@ int main_devd(int argc, char **argv) } } - libxl_device_events_handler(ctx, 0); + ret = libxl_device_events_handler(ctx, 0) ? EXIT_FAILURE : EXIT_SUCCESS; out: return ret; -- 2.11.0
_______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel