* 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.
+2010-08-22 Paolo Bonzini <bonzini@gnu.org>
+ Erik Faye-Lund <kusmabite@gmail.com>
+
+ 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.
+
2010-08-22 Giuseppe Scrivano <gscrivano@gnu.org>
fts: allow compilation with C++
if (avail)
happened |= *p_sought & (POLLIN | POLLRDNORM);
}
+ else if (GetLastError () == ERROR_BROKEN_PIPE)
+ happened |= POLLHUP;
else
{
if (avail)
read = TRUE;
}
+ else if (GetLastError () == ERROR_BROKEN_PIPE)
+ ;
else
{