--- libaitsched/src/tasks.c 2012/08/01 14:11:43 1.10.2.3 +++ libaitsched/src/tasks.c 2012/08/01 16:47:06 1.10.2.4 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: tasks.c,v 1.10.2.3 2012/08/01 14:11:43 misho Exp $ +* $Id: tasks.c,v 1.10.2.4 2012/08/01 16:47:06 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -585,9 +585,8 @@ 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_DISPATCH; acb->aio_sigevent.sigev_notify_kqueue = root->root_kq; - acb->aio_sigevent.sigev_value.sival_ptr = (void*) O_RDONLY; + acb->aio_sigevent.sigev_value.sival_ptr = acb; if (aio_read(acb)) { LOGERR; @@ -643,9 +642,8 @@ 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_DISPATCH; acb->aio_sigevent.sigev_notify_kqueue = root->root_kq; - acb->aio_sigevent.sigev_value.sival_ptr = (void*) O_WRONLY; + acb->aio_sigevent.sigev_value.sival_ptr = acb; if (aio_write(acb)) { LOGERR;