xl: don't ignore return value from libxl_device_events_handler

That function can return a whole slew of error codes. Translate them
to EXIT_FAILURE.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Release-acked-by: Julien Grall <julien.grall@arm.com>
This commit is contained in:
Wei Liu committed 2017-05-12 11:02:58 +01:00
1 parent 0d1a96043a
commit 6cde97e33d
1 file changed
+1 -1
+1 -1
View File
@@ -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;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.