提交 9380d92d 编写于 作者: M Marc Hartmayer 提交者: John Ferlan

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: NMarc Hartmayer <mhartmay@linux.ibm.com>
Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
上级 632a8697
......@@ -1802,6 +1802,8 @@ nodeStateInitializeEnumerate(void *opaque)
error:
virObjectLock(priv);
ignore_value(virEventRemoveHandle(priv->watch));
priv->watch = -1;
priv->threadQuit = true;
virObjectUnlock(priv);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册