--- libaitsched/src/tasks.c 2012/08/01 13:43:14 1.10.2.2 +++ libaitsched/src/tasks.c 2012/08/01 14:11:43 1.10.2.3 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: tasks.c,v 1.10.2.2 2012/08/01 13:43:14 misho Exp $ +* $Id: tasks.c,v 1.10.2.3 2012/08/01 14:11:43 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -585,7 +585,7 @@ schedAIORead(sched_root_task_t * __restrict root, sche } else acb->aio_offset = off; acb->aio_sigevent.sigev_notify = SIGEV_KEVENT; - acb->aio_sigevent.sigev_notify_kevent_flags = EV_CLEAR | EV_ONESHOT; + acb->aio_sigevent.sigev_notify_kevent_flags = EV_CLEAR | EV_DISPATCH; acb->aio_sigevent.sigev_notify_kqueue = root->root_kq; acb->aio_sigevent.sigev_value.sival_ptr = (void*) O_RDONLY; @@ -643,7 +643,7 @@ schedAIOWrite(sched_root_task_t * __restrict root, sch } else acb->aio_offset = off; acb->aio_sigevent.sigev_notify = SIGEV_KEVENT; - acb->aio_sigevent.sigev_notify_kevent_flags = EV_CLEAR | EV_ONESHOT; + acb->aio_sigevent.sigev_notify_kevent_flags = EV_CLEAR | EV_DISPATCH; acb->aio_sigevent.sigev_notify_kqueue = root->root_kq; acb->aio_sigevent.sigev_value.sival_ptr = (void*) O_WRONLY;