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:
Marc Hartmayer 2019-02-20 11:05:46 +01:00 committed by John Ferlan
parent 9380d92d6f
commit 27eb324668

View File

@ -1805,6 +1805,7 @@ nodeStateInitializeEnumerate(void *opaque)
ignore_value(virEventRemoveHandle(priv->watch));
priv->watch = -1;
priv->threadQuit = true;
virCondSignal(&priv->threadCond);
virObjectUnlock(priv);
}