4 #include "threadimpl.h"
7 iocall(Ioproc *io, long (*op)(va_list*), ...)
12 if(send(io->c, &io) == -1){
13 werrstr("interrupted");
19 va_start(io->arg, op);
22 while(send(io->creply, &msg) == -1){
27 werrstr("interrupted");
32 * If we get interrupted, we have to stick around so that
33 * the IO proc has someone to talk to. Send it an interrupt
37 while(recv(io->creply, nil) == -1){
45 errstr(io->err, sizeof io->err);
48 /* release resources */
49 while(send(io->creply, &io) == -1)