… | |
… | |
300 | if (iocb->io.aio_buf) |
300 | if (iocb->io.aio_buf) |
301 | { |
301 | { |
302 | for (;;) |
302 | for (;;) |
303 | { |
303 | { |
304 | /* on all relevant kernels, io_cancel fails with EINPROGRESS on "success" */ |
304 | /* on all relevant kernels, io_cancel fails with EINPROGRESS on "success" */ |
305 | if (expect_false (evsys_io_cancel (linuxaio_ctx, &iocb->io, (struct io_event *)0) == 09) |
305 | if (expect_false (evsys_io_cancel (linuxaio_ctx, &iocb->io, (struct io_event *)0) == 0)) |
306 | break; |
306 | break; |
307 | |
307 | |
308 | if (expect_true (errno == EINPROGRESS)) |
308 | if (expect_true (errno == EINPROGRESS)) |
309 | break; |
309 | break; |
310 | |
310 | |