提交 bdd68947 编写于 作者: D Daniel Veillard

* src/xs_internal.c: fix xen events handling problem (Dan Berrange)

Daniel
上级 27a63a76
Wed Mar 11 14:42:24 CET 2009 Daniel Veillard <veilard@redhat.com>
* src/xs_internal.c: fix xen events handling problem (Dan Berrange)
Tue Mar 10 12:03:37 CET 2009 Daniel Veillard <veilard@redhat.com>
* src/xend_internal.c: fix an allocation problem in
......
......@@ -1215,7 +1215,7 @@ xenStoreFindWatch(xenStoreWatchListPtr list,
static void
xenStoreWatchEvent(int watch ATTRIBUTE_UNUSED,
int fd ATTRIBUTE_UNUSED,
int events ATTRIBUTE_UNUSED,
int events,
void *data)
{
char **event;
......@@ -1226,8 +1226,12 @@ xenStoreWatchEvent(int watch ATTRIBUTE_UNUSED,
virConnectPtr conn = data;
xenUnifiedPrivatePtr priv = (xenUnifiedPrivatePtr) conn->privateData;
if(!priv) return;
/* only set a watch on read and write events */
if (events & (VIR_EVENT_HANDLE_ERROR | VIR_EVENT_HANDLE_HANGUP)) return;
xenUnifiedLock(priv);
if(!priv->xshandle)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册