]> xenbits.xensource.com Git - libvirt.git/commit
fdstream: Emit stream abort callback even if poll() doesnt.
authorPeter Krempa <pkrempa@redhat.com>
Thu, 23 Feb 2012 11:54:18 +0000 (12:54 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 27 Feb 2012 14:05:17 +0000 (15:05 +0100)
commit95fdc1bc2b397909b9cefacf9ff91924897f5af4
treeec1f6b702ba95ddf7ad87f878bc7b74f0e2b366f
parentafa4336e94bce656f04f88276603ce9dbeefeace
fdstream: Emit stream abort callback even if poll() doesnt.

This patch causes the fdstream driver to call the stream event callback
if virStreamAbort() is called on a stream using this driver.

A remote handler for a stream can only detect changes via stream events,
so this event callback is necessary in order to enable a daemon to abort
a stream in such a way that the client will see the change.

* src/fdstream.c:
        - modify close function to call stream event callback
src/fdstream.c