mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
remote: daemon: Make sure that JSON symbols are properly loaded at startup
Explicitly call virJSONInitialize at startup of the libvirt daemon so that we are sure that the symbols in the compat library are properly loaded. This will prevent any random failure from happening later on when the daemon would want to use the JSON parser. Signed-off-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
9e44c2db8a
commit
3251fc9c9b
@ -2135,6 +2135,10 @@ virJSONValueObjectStealObject;
|
||||
virJSONValueToString;
|
||||
|
||||
|
||||
# util/virjsoncompat.h
|
||||
virJSONInitialize;
|
||||
|
||||
|
||||
# util/virkeycode.h
|
||||
virKeycodeSetTypeFromString;
|
||||
virKeycodeSetTypeToString;
|
||||
|
@ -59,6 +59,7 @@
|
||||
#include "virutil.h"
|
||||
#include "virgettext.h"
|
||||
#include "util/virnetdevopenvswitch.h"
|
||||
#include "virjsoncompat.h"
|
||||
|
||||
#include "driver.h"
|
||||
|
||||
@ -1183,6 +1184,9 @@ int main(int argc, char **argv) {
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
if (virJSONInitialize() < 0)
|
||||
exit(EXIT_FAILURE);
|
||||
|
||||
daemonSetupNetDevOpenvswitch(config);
|
||||
|
||||
if (daemonSetupAccessManager(config) < 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user