diff options
author | 2010-05-20 09:52:20 +0200 | |
---|---|---|
committer | 2010-05-26 12:08:21 -0500 | |
commit | 489c438366a9047d952d3302634a6695ef4cc94c (patch) | |
tree | 99fe14407c13ae4877ceeecf304369148b65ad96 | |
parent | Fix potential NULL dereference in remoteDomainMigratePrepare2 (diff) | |
download | libvirt-v0.8.1-gentoo.tar.gz libvirt-v0.8.1-gentoo.tar.bz2 libvirt-v0.8.1-gentoo.zip |
libvirtd: don't ignore virInitialize failurev0.8.1-gentoo-1v0.8.1-gentoo
* daemon/libvirtd.c (main): Diagnose virInitialize failure
and exit nonzero.
-rw-r--r-- | daemon/libvirtd.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/daemon/libvirtd.c b/daemon/libvirtd.c index 4533f4071..c15ddc158 100644 --- a/daemon/libvirtd.c +++ b/daemon/libvirtd.c @@ -3029,7 +3029,10 @@ int main(int argc, char **argv) { {0, 0, 0, 0} }; - virInitialize(); + if (virInitialize() < 0) { + fprintf (stderr, _("libvirtd: initialization failed\n")); + exit (EXIT_FAILURE); + } while (1) { int optidx = 0; |