--- libev/ev_linuxaio.c 2019/06/26 00:11:24 1.35 +++ libev/ev_linuxaio.c 2019/06/26 07:01:14 1.36 @@ -301,7 +301,7 @@ { evsys_io_cancel (linuxaio_ctx, &iocb->io, (struct io_event *)0); /* on relevant kernels, io_cancel fails with EINPROGRES if everything is fine */ - assert (("libev: linuxaio unexpected io_cancel failed", errno != EINPROGRESS)); + assert (("libev: linuxaio unexpected io_cancel failed", errno == EINPROGRESS)); } if (nev)