--- libaitio/src/sock.c 2013/12/12 21:17:53 1.11.2.3 +++ libaitio/src/sock.c 2013/12/12 23:36:31 1.11.2.5 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: sock.c,v 1.11.2.3 2013/12/12 21:17:53 misho Exp $ +* $Id: sock.c,v 1.11.2.5 2013/12/12 23:36:31 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -64,6 +64,7 @@ io_closeClient(sched_task_t *task) if (s->sock_prog) { io_progDetach(s->sock_prog, cli->cli_pty); cli->cli_pty ^= cli->cli_pty; + io_progCheck(s->sock_prog, 42); } if (s->sock_type == SOCK_STREAM) { @@ -153,8 +154,10 @@ io_txNet(sched_task_t *task) if ((ret = poll(pfd, 1, s->sock_timeout.tv_sec * 1000)) < 1 || pfd->revents & (POLLNVAL | POLLERR | POLLHUP)) { +#if 0 if (!ret) continue; +#endif schedEvent(TASK_ROOT(task), io_closeClient, cli, 0, NULL, 0); break; }