diff options
author | Szabolcs Nagy <nsz@port70.net> | 2013-01-13 23:15:39 +0100 |
---|---|---|
committer | Szabolcs Nagy <nsz@port70.net> | 2013-01-13 23:15:39 +0100 |
commit | a753f7fe7a7b31acdf2beddeca23ccdbd38f0a2e (patch) | |
tree | 864f32628123f06121f8b67bb36ac79832bb7503 | |
parent | 200f96c6a04cb1b3af702968b86c363c6a73a50b (diff) | |
download | musl-a753f7fe7a7b31acdf2beddeca23ccdbd38f0a2e.tar.gz musl-a753f7fe7a7b31acdf2beddeca23ccdbd38f0a2e.tar.xz musl-a753f7fe7a7b31acdf2beddeca23ccdbd38f0a2e.zip |
fix lio_listio return value in LIO_WAIT mode
-rw-r--r-- | src/aio/lio_listio.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |