1
0
Эх сурвалжийг харах

fix lio_listio return value in LIO_WAIT mode

Szabolcs Nagy 12 жил өмнө
parent
commit
a753f7fe7a
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      src/aio/lio_listio.c

+ 1 - 1
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) {