--- mqtt/src/daemon.c 2012/07/03 12:22:56 1.3.2.1 +++ mqtt/src/daemon.c 2012/08/29 14:40:08 1.4.2.1 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: daemon.c,v 1.3.2.1 2012/07/03 12:22:56 misho Exp $ +* $Id: daemon.c,v 1.4.2.1 2012/08/29 14:40:08 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -403,6 +403,8 @@ acceptClient(sched_task_t *task) if ((cli = accept(TASK_FD(task), &sa.sa, &sslen)) == -1) goto end; + else + fcntl(cli, F_SETFL, fcntl(cli, F_GETFL) | O_NONBLOCK); v = io_allocVar(); if (!v) {