… | |
… | |
167 | |
167 | |
168 | static int |
168 | static int |
169 | aio_proc(void *thr_arg) |
169 | aio_proc(void *thr_arg) |
170 | { |
170 | { |
171 | aio_thread *thr = thr_arg; |
171 | aio_thread *thr = thr_arg; |
172 | int sig; |
172 | aio_req req; |
173 | int errno; |
173 | int errno; |
174 | aio_req req; |
|
|
175 | |
174 | |
176 | sigprocmask (SIG_SETMASK, &fullsigset, 0); |
175 | sigprocmask (SIG_SETMASK, &fullsigset, 0); |
177 | |
176 | |
178 | /* we rely on gcc's ability to create closures. */ |
177 | /* we rely on gcc's ability to create closures. */ |
179 | _syscall3(int,lseek,int,fd,off_t,offset,int,whence); |
178 | _syscall3(int,lseek,int,fd,off_t,offset,int,whence); |
… | |
… | |
217 | MODULE = Linux::AIO PACKAGE = Linux::AIO |
216 | MODULE = Linux::AIO PACKAGE = Linux::AIO |
218 | |
217 | |
219 | BOOT: |
218 | BOOT: |
220 | { |
219 | { |
221 | sigfillset (&fullsigset); |
220 | sigfillset (&fullsigset); |
|
|
221 | sigdelset (&fullsigset, SIGTERM); |
|
|
222 | sigdelset (&fullsigset, SIGQUIT); |
|
|
223 | sigdelset (&fullsigset, SIGABRT); |
|
|
224 | sigdelset (&fullsigset, SIGINT); |
222 | |
225 | |
223 | if (pipe (reqpipe) || pipe (respipe)) |
226 | if (pipe (reqpipe) || pipe (respipe)) |
224 | croak ("unable to initialize request or result pipe"); |
227 | croak ("unable to initialize request or result pipe"); |
225 | |
228 | |
226 | if (fcntl (respipe[0], F_SETFL, O_NONBLOCK)) |
229 | if (fcntl (respipe[0], F_SETFL, O_NONBLOCK)) |