mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 14:15:28 +00:00
udev: nodeStateInitializeEnumerate: remove watch handle in case of an error
If the udev thread is stopped, it must be ensured that the watch handle is also removed from the main loop. Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com> Reviewed-by: John Ferlan <jferlan@redhat.com>
This commit is contained in:
parent
632a8697c6
commit
9380d92d6f
@ -1802,6 +1802,8 @@ nodeStateInitializeEnumerate(void *opaque)
|
||||
|
||||
error:
|
||||
virObjectLock(priv);
|
||||
ignore_value(virEventRemoveHandle(priv->watch));
|
||||
priv->watch = -1;
|
||||
priv->threadQuit = true;
|
||||
virObjectUnlock(priv);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user