--- libaitio/src/sock.c 2013/08/27 19:40:30 1.2.2.6 +++ libaitio/src/sock.c 2013/08/27 20:08:26 1.2.2.7 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: sock.c,v 1.2.2.6 2013/08/27 19:40:30 misho Exp $ +* $Id: sock.c,v 1.2.2.7 2013/08/27 20:08:26 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -260,7 +260,7 @@ ioAcceptSocket(sock_t * __restrict s, sock_cb_t f, voi pfd->events = POLLIN | POLLPRI; do { if (poll(pfd, 1, -1) < 1 || - pfd->revents & (POLLNVAL | POLLHUP || POLLERR)) { + pfd->revents & (POLLNVAL | POLLHUP | POLLERR)) { LOGERR; return -1; } else