mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-26 18:41:17 +00:00
* src/xs_internal.c: fix xen events handling problem (Dan Berrange)
Daniel
This commit is contained in:
parent
27a63a76af
commit
bdd6894713
@ -1,6 +1,10 @@
|
|||||||
|
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>
|
Tue Mar 10 12:03:37 CET 2009 Daniel Veillard <veilard@redhat.com>
|
||||||
|
|
||||||
* src/xend_internal.c: fix an allocation problem in
|
* src/xend_internal.c: fix an allocation problem in
|
||||||
xenDaemonDomainLookupByName_ids
|
xenDaemonDomainLookupByName_ids
|
||||||
|
|
||||||
Tue Mar 10 10:29:46 GMT 2009 Daniel P. Berrange <berrange@redhat.com>
|
Tue Mar 10 10:29:46 GMT 2009 Daniel P. Berrange <berrange@redhat.com>
|
||||||
|
@ -1215,7 +1215,7 @@ xenStoreFindWatch(xenStoreWatchListPtr list,
|
|||||||
static void
|
static void
|
||||||
xenStoreWatchEvent(int watch ATTRIBUTE_UNUSED,
|
xenStoreWatchEvent(int watch ATTRIBUTE_UNUSED,
|
||||||
int fd ATTRIBUTE_UNUSED,
|
int fd ATTRIBUTE_UNUSED,
|
||||||
int events ATTRIBUTE_UNUSED,
|
int events,
|
||||||
void *data)
|
void *data)
|
||||||
{
|
{
|
||||||
char **event;
|
char **event;
|
||||||
@ -1226,8 +1226,12 @@ xenStoreWatchEvent(int watch ATTRIBUTE_UNUSED,
|
|||||||
|
|
||||||
virConnectPtr conn = data;
|
virConnectPtr conn = data;
|
||||||
xenUnifiedPrivatePtr priv = (xenUnifiedPrivatePtr) conn->privateData;
|
xenUnifiedPrivatePtr priv = (xenUnifiedPrivatePtr) conn->privateData;
|
||||||
|
|
||||||
if(!priv) return;
|
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);
|
xenUnifiedLock(priv);
|
||||||
|
|
||||||
if(!priv->xshandle)
|
if(!priv->xshandle)
|
||||||
|
Loading…
Reference in New Issue
Block a user