From: Marc Hartmayer Date: Wed, 20 Feb 2019 10:05:46 +0000 (+0100) Subject: udev: wake up the udev thread for stopping it X-Git-Tag: v5.1.0-rc1~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=27eb32466807f1f46e0b72a2270c0863300542d2;p=thirdparty%2Flibvirt.git 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 Reviewed-by: John Ferlan --- diff --git a/src/node_device/node_device_udev.c b/src/node_device/node_device_udev.c index 4dd2e9004f..32e762009f 100644 --- a/src/node_device/node_device_udev.c +++ b/src/node_device/node_device_udev.c @@ -1805,6 +1805,7 @@ nodeStateInitializeEnumerate(void *opaque) ignore_value(virEventRemoveHandle(priv->watch)); priv->watch = -1; priv->threadQuit = true; + virCondSignal(&priv->threadCond); virObjectUnlock(priv); }