mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 07:17:44 +00:00
udev: wake up the udev thread for stopping it
Signal the udev thread the change of `priv->threadQuit` by using the thread condition. Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com> Reviewed-by: John Ferlan <jferlan@redhat.com>
This commit is contained in:
parent
9380d92d6f
commit
27eb324668
@ -1805,6 +1805,7 @@ nodeStateInitializeEnumerate(void *opaque)
|
||||
ignore_value(virEventRemoveHandle(priv->watch));
|
||||
priv->watch = -1;
|
||||
priv->threadQuit = true;
|
||||
virCondSignal(&priv->threadCond);
|
||||
virObjectUnlock(priv);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user