]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
udev: wake up the udev thread for stopping it
authorMarc Hartmayer <mhartmay@linux.ibm.com>
Wed, 20 Feb 2019 10:05:46 +0000 (11:05 +0100)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 20 Feb 2019 19:07:48 +0000 (14:07 -0500)
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>
src/node_device/node_device_udev.c

index 4dd2e9004fd78d0e938524a092dd8d1edd6b5ec1..32e762009f1ca7886578ac9f7581c528a5436783 100644 (file)
@@ -1805,6 +1805,7 @@ nodeStateInitializeEnumerate(void *opaque)
     ignore_value(virEventRemoveHandle(priv->watch));
     priv->watch = -1;
     priv->threadQuit = true;
+    virCondSignal(&priv->threadCond);
     virObjectUnlock(priv);
 }