mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-04-01 20:05:19 +00:00
libvirtd: don't ignore virInitialize failure
* daemon/libvirtd.c (main): Diagnose virInitialize failure and exit nonzero.
This commit is contained in:
parent
7e1249f259
commit
6752d11997
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user