]> git.ipfire.org Git - thirdparty/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)
committerCole Robinson <crobinso@redhat.com>
Thu, 14 Jun 2012 21:35:36 +0000 (17:35 -0400)
commit25eeffcb17c1052bccdcc7faad9cc3d2a30f92a7
treeed9d2728064f75136969bf5f27f51213e7a50306
parent96c3c2752ee9b45a8ed05112fbccf55f20e0d1af
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
(cherry picked from commit 95fdc1bc2b397909b9cefacf9ff91924897f5af4)
src/fdstream.c