about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSzabolcs Nagy <nsz@port70.net>2013-01-13 23:15:39 +0100
committerSzabolcs Nagy <nsz@port70.net>2013-01-13 23:15:39 +0100
commita753f7fe7a7b31acdf2beddeca23ccdbd38f0a2e (patch)
tree864f32628123f06121f8b67bb36ac79832bb7503
parent200f96c6a04cb1b3af702968b86c363c6a73a50b (diff)
downloadmusl-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.c2
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) {