--- mqtt/src/daemon.c 2012/07/03 12:46:00 1.4 +++ mqtt/src/daemon.c 2013/01/18 09:43:27 1.5 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: daemon.c,v 1.4 2012/07/03 12:46:00 misho Exp $ +* $Id: daemon.c,v 1.5 2013/01/18 09:43:27 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) {