solarisaio: fix aio errno assignment
[fio.git] / engines / solarisaio.c
index 17b7e22c87bcc9b850def35739e4a973d7a129f6..069cda5347c903d9f458772508b2f6eed0d2fc39 100644 (file)
@@ -62,7 +62,7 @@ static void wait_for_event(struct timeval *tv)
                io_u->resid = io_u->xfer_buflen - io_u->resultp.aio_return;
                io_u->error = 0;
        } else
-               io_u->error = io_u->resultp.aio_return;
+               io_u->error = io_u->resultp.aio_errno;
 
        /*
         * For SIGIO, we need a write barrier between the two, so that