From b957e864209026ab126d1eebedc0a2f0beaf853a Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 6 Jan 2006 04:13:26 +0000 Subject: * rt/Makefile (tests): Add tst-aio9 and tst-aio10. * rt/tst-aio10.c: New file. --- sysdeps/pthread/lio_listio.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sysdeps') diff --git a/sysdeps/pthread/lio_listio.c b/sysdeps/pthread/lio_listio.c index 39187f3025..c652404ae2 100644 --- a/sysdeps/pthread/lio_listio.c +++ b/sysdeps/pthread/lio_listio.c @@ -172,7 +172,10 @@ lio_listio_internal (int mode, struct aiocb *const list[], int nent, /* If any of the I/O requests failed, return -1 and set errno. */ if (result != 0) - __set_errno (EIO); + { + __set_errno (result == EINTR ? EINTR : EIO); + result = -1; + } } else { -- cgit v1.2.1