Chris Lalancette wrote:
> Subject: [PATCH] libvirtd: don't ignore virInitialize
failure
>
> * daemon/libvirtd.c (main): Diagnose virInitialize failure
> and exit nonzero.
> ---
> daemon/libvirtd.c | 5 ++++-
> 1 files changed, 4 insertions(+), 1 deletions(-)
>
> diff --git a/daemon/libvirtd.c b/daemon/libvirtd.c
> index afa10fb..aac2d08 100644
> --- a/daemon/libvirtd.c
> +++ b/daemon/libvirtd.c
> @@ -3028,7 +3028,10 @@ int main(int argc, char **argv) {
> {0, 0, 0, 0}
> };
>
> - virInitialize();
> + if (virInitialize() < 0) {
> + fprintf (stderr, _("libvirtd: initialization failed\n"));
> + exit (EXIT_FAILURE);
> + }
ACK
Thanks. Pushed.