]> git.ipfire.org Git - thirdparty/libvirt.git/commit
src: ensure GSource background unref happens in correct event loop
authorDaniel P. Berrangé <berrange@redhat.com>
Tue, 16 Mar 2021 16:26:06 +0000 (16:26 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Wed, 17 Mar 2021 09:16:05 +0000 (09:16 +0000)
commit695bdb3841ca20e905680a7eec8ca040ec28e459
treecd4dd1c5bd0de95490b9d36acfe40d04426ec141
parent78bcf5546bf04080473b40a4de2e483399188222
src: ensure GSource background unref happens in correct event loop

The g_idle_add function adds a callback to the primary GMainContext.

To workaround the GSource unref bugs, we need to add our callbacks
to the GMainContext that is associated with the GSource being
unref'd. Thus code using the per-VM virEventThread must use its
private GMainContext.

Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
meson.build
src/libvirt_glib_crash_workaround.syms [deleted file]
src/libvirt_private.syms
src/meson.build
src/qemu/qemu_agent.c
src/qemu/qemu_monitor.c
src/util/glibcompat.c
src/util/glibcompat.h
src/util/vireventglib.c