poll, select: handle ERROR_BROKEN_PIPE.
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 23 Aug 2010 07:35:43 +0000 (09:35 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 23 Aug 2010 07:48:16 +0000 (09:48 +0200)
commit51c2a23373ee3583682e6faae3dc4f518bd03f04
tree647c8ab5418ff8609a3b0c817d61d1d94ed18099
parent06728e052e6522623d9b38a264cf488e75bb5e0c
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.
ChangeLog
lib/poll.c
lib/select.c