--- IO-AIO/AIO.xs 2006/10/27 20:10:06 1.81 +++ IO-AIO/AIO.xs 2006/10/28 00:17:30 1.83 @@ -612,7 +612,10 @@ req->type = REQ_QUIT; req->pri = PRI_MAX + PRI_BIAS; - req_send (req); + LOCK (reqlock); + reqq_push (&req_queue, req); + pthread_cond_signal (&reqwait); + UNLOCK (reqlock); LOCK (wrklock); --started; @@ -1181,11 +1184,13 @@ BOOT: { HV *stash = gv_stashpv ("IO::AIO", 1); + newCONSTSUB (stash, "EXDEV", newSViv (EXDEV)); newCONSTSUB (stash, "O_RDONLY", newSViv (O_RDONLY)); newCONSTSUB (stash, "O_WRONLY", newSViv (O_WRONLY)); newCONSTSUB (stash, "O_CREAT", newSViv (O_CREAT)); newCONSTSUB (stash, "O_TRUNC", newSViv (O_TRUNC)); + newCONSTSUB (stash, "S_IFIFO", newSViv (S_IFIFO)); create_pipe (); pthread_atfork (atfork_prepare, atfork_parent, atfork_child);