mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-31 18:33:11 +00:00
a42b46dd7d
When the host is shutting down then we get PrepareForShutdown signal on DBus to which we react by creating a thread which runs virStateStop() and thus qemuStateStop(). But if scheduling the thread is delayed just a but it may happen that we receive SIGTERM (sent by systemd) to which we respond by quitting our event loop and cleaning up everything (including drivers). And only after that the thread gets to run only to find qemu_driver being NULL. What we can do is to delay exiting event loop and join the thread that's executing virStateStop(). If the join doesn't happen in given timeout (currently 30 seconds) then libvirtd shuts down forcefully anyways (see virNetDaemonRun()). Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1895359 Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1739564 Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com> |
||
---|---|---|
.. | ||
gendispatch.pl | ||
genprotocol.pl | ||
meson.build | ||
virkeepalive.c | ||
virkeepalive.h | ||
virkeepaliveprotocol.x | ||
virnetclient.c | ||
virnetclient.h | ||
virnetclientprogram.c | ||
virnetclientprogram.h | ||
virnetclientstream.c | ||
virnetclientstream.h | ||
virnetdaemon.c | ||
virnetdaemon.h | ||
virnetlibsshsession.c | ||
virnetlibsshsession.h | ||
virnetmessage.c | ||
virnetmessage.h | ||
virnetprotocol.x | ||
virnetsaslcontext.c | ||
virnetsaslcontext.h | ||
virnetserver.c | ||
virnetserver.h | ||
virnetserverclient.c | ||
virnetserverclient.h | ||
virnetserverprogram.c | ||
virnetserverprogram.h | ||
virnetserverservice.c | ||
virnetserverservice.h | ||
virnetsocket.c | ||
virnetsocket.h | ||
virnetsshsession.c | ||
virnetsshsession.h | ||
virnettlscontext.c | ||
virnettlscontext.h |