--- mqtt/src/daemon.c 2012/05/03 13:39:34 1.2.2.20 +++ mqtt/src/daemon.c 2012/05/03 14:00:33 1.2.2.21 @@ -336,7 +336,7 @@ acceptClient(sched_task_t *task) if ((cli = accept(TASK_FD(task), &sa.sa, &sslen)) == -1) goto end; else - fcntl(TASK_FD(task), F_SETFL, fcntl(TASK_FD(task), F_GETFL, 0) | O_NONBLOCK); + fcntl(cli, F_SETFL, fcntl(cli, F_GETFL, 0) | O_NONBLOCK); v = io_allocVar(); if (!v) {