From: Szabolcs Nagy Date: Sun, 13 Jan 2013 22:15:39 +0000 (+0100) Subject: fix lio_listio return value in LIO_WAIT mode X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=commitdiff_plain;h=a753f7fe7a7b31acdf2beddeca23ccdbd38f0a2e;ds=sidebyside fix lio_listio return value in LIO_WAIT mode --- 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) {