mirror of https://gitee.com/openkylin/libvirt.git
Add uevent netlink service.
This patch adds a new netlink service with NETLINK_KOBJECT_UEVENT protocol hotplug event. Signed-off-by: Tang Chen <tangchen@cn.fujitsu.com>
This commit is contained in:
parent
15a71e6059
commit
080bf330e3
|
@ -1318,6 +1318,12 @@ int main(int argc, char **argv) {
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Register the netlink event service for NETLINK_KOBJECT_UEVENT */
|
||||||
|
if (virNetlinkEventServiceStart(NETLINK_KOBJECT_UEVENT, 1) < 0) {
|
||||||
|
ret = VIR_DAEMON_ERR_NETWORK;
|
||||||
|
goto cleanup;
|
||||||
|
}
|
||||||
|
|
||||||
/* Run event loop. */
|
/* Run event loop. */
|
||||||
virNetServerRun(srv);
|
virNetServerRun(srv);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue