mirror of https://gitee.com/openkylin/libvirt.git
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…
Reference in New Issue