]> 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)
committerCole Robinson <crobinso@redhat.com>
Tue, 11 Jun 2013 22:28:23 +0000 (18:28 -0400)
commit69838772ccc2c281825daadcb428cb5951bfa81d
treee5273ad16468855a23315c25643f947f18c79a87
parent742dd7b75fa6be00a40ceaa9b94211a27f44c4f6
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>
(cherry picked from commit e7b0382945c9bf043f06ee4dd760c2051d63d0f0)
daemon/stream.c