poll, select: handle ERROR_BROKEN_PIPE.
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 23 Aug 2010 07:35:43 +0000 (09:35 +0200)
committerIan Beckwith <ianb@erislabs.net>
Sun, 29 Aug 2010 16:18:56 +0000 (17:18 +0100)
commit880d107101b4bc772af2c3b06c9cebcdfe31fe90
tree024b4f408ec8bb083f8b8e8c6b1beb563bbc1f85
parentf5d20bee7a4a3d7a270b76b1c50984c7cf1c9c45
poll, select: handle ERROR_BROKEN_PIPE.

* lib/poll.c (win32_compute_revents): Return POLLHUP when
PeekNamedPipe fails with ERROR_BROKEN_PIPE.
* lib/select.c (win32_compute_revents): Do not mark a pipe
as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
(cherry picked from commit 51c2a23373ee3583682e6faae3dc4f518bd03f04)
ChangeLog
lib/poll.c
lib/select.c