Commit 4e82e61e authored by Niels Möller's avatar Niels Möller
Browse files

(io_iter): Handle POLLERR.

Rev: src/io.c:1.127
parent dac122b1
......@@ -379,6 +379,19 @@ int io_iter(struct io_backend *b)
}
#endif /* POLLHUP */
#ifdef POLLERR
if (fds[i].revents & POLLERR)
{
werror("io.c: POLLERR. Hanging up.\n");
/* FIXME: Should we raise any exception here? */
close_fd(fd);
continue;
}
#endif /* POLLERR */
#ifdef POLLPRI
if (fds[i].revents & POLLPRI)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment