]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Tweak EOF handling of streams
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 9 Apr 2013 12:24:02 +0000 (13:24 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 12 Apr 2013 10:27:57 +0000 (11:27 +0100)
commite7b0382945c9bf043f06ee4dd760c2051d63d0f0
tree6cc578c7873fa8f805ee6200b114e0691dc1a55f
parenta6e37aedff54092fea63c429c25e8c3de38a1d2d
Tweak EOF handling of streams

Typically when you get EOF on a stream, poll will return
POLLIN|POLLHUP at the same time. Thus when we deal with
stream reads, if we see EOF during the read, we can then
clear the VIR_STREAM_EVENT_HANGUP & VIR_STREAM_EVENT_ERROR
event bits.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
daemon/stream.c