--- libaitio/src/sock.c 2013/08/27 19:40:30 1.2.2.6 +++ libaitio/src/sock.c 2013/09/02 11:56:32 1.4 @@ -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.4 2013/09/02 11:56:32 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -260,7 +260,9 @@ 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)) { + if (errno == EINTR) + continue; LOGERR; return -1; } else