فهرست منبع

fix lio_listio return value in LIO_WAIT mode

Szabolcs Nagy 12 سال پیش
والد
کامیت
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) {