From a753f7fe7a7b31acdf2beddeca23ccdbd38f0a2e Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Sun, 13 Jan 2013 23:15:39 +0100 Subject: [PATCH] fix lio_listio return value in LIO_WAIT mode --- src/aio/lio_listio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aio/lio_listio.c b/src/aio/lio_listio.c index 532b17ce..64a6ebc1 100644 --- a/src/aio/lio_listio.c +++ b/src/aio/lio_listio.c @@ -109,7 +109,7 @@ int lio_listio(int mode, struct aiocb *restrict const *restrict cbs, int cnt, st if (mode == LIO_WAIT) { ret = lio_wait(st); free(st); - return 0; + return ret; } if (st) {