]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virCommand: Properly handle POLLHUP
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 3 Jan 2012 17:40:55 +0000 (18:40 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 4 Jan 2012 09:40:23 +0000 (10:40 +0100)
commit06b9c5b9231ef4dbd4b5ff69564305cd4f814879
tree5c9d906255c8b4af0b4a0d6c31872bc89a3ff829
parent524ba58bb9e371cbbae99fc8eec0e1c67cbe12bc
virCommand: Properly handle POLLHUP

It is a good practise to set revents to zero before doing any poll().
Moreover, we should check if event we waited for really occurred or
if any of fds we were polling on didn't encountered hangup.
src/util/command.c