From eaf09db4239ccf364c251d3fa493ef1cb41009cb Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Fri, 27 Oct 2006 10:45:12 +0200 Subject: [PATCH] [PATCH] libaio sign error Signed-off-by: Jens Axboe --- engines/fio-engine-libaio.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/engines/fio-engine-libaio.c b/engines/fio-engine-libaio.c index daee6593..1848dcc4 100644 --- a/engines/fio-engine-libaio.c +++ b/engines/fio-engine-libaio.c @@ -57,7 +57,10 @@ static int fio_libaio_getevents(struct thread_data *td, int min, int max, break; } while (1); - return (int) -r; + if (r < 0) + r = -r; + + return (int) r; } static int fio_libaio_queue(struct thread_data *td, struct io_u *io_u) -- 2.25.1