[libvirt] [PATCH] fix EventImpl-related error paths in remote driver
David Lively
dlively at virtualiron.com
Thu Nov 20 21:55:44 UTC 2008
This patch makes the remote driver behave properly in the face of:
(a) no registered EventImpl, or
(b) an EventImpl that returns failure from AddHandle/Timeout
In both cases, we now cleanup properly (rather than always passing bogus
values to virEventRemoveHandle/Timeout) and fail attempts to register
for domain events (w/VIR_ERR_NO_SUPPORT rather than blissfully continue
when we can't possibly deliver events).
Dave
remote_internal.c | 15 +++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: remote-refuse-useless-event-registration.patch
Type: text/x-patch
Size: 2012 bytes
Desc:
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20081120/180771e5/attachment-0001.bin>
More information about the libvir-list
mailing list