diff --git a/src/ply-utils.c b/src/ply-utils.c index b793c614..4605114b 100644 --- a/src/ply-utils.c +++ b/src/ply-utils.c @@ -83,7 +83,9 @@ ply_fd_has_data (int fd) poll_data.revents = 0; result = poll (&poll_data, 1, 10); - return result == 1; + return result == 1 + && ((poll_data.revents & POLLIN) + || (poll_data.revents & POLLPRI)); } bool