summaryrefslogtreecommitdiff
path: root/sysdeps/pthread
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2006-01-06 04:13:26 +0000
committerUlrich Drepper <drepper@redhat.com>2006-01-06 04:13:26 +0000
commitb957e864209026ab126d1eebedc0a2f0beaf853a (patch)
treebab3d045d112c774a55489df013cc2d8869f4f71 /sysdeps/pthread
parent679d83bac2f4bed0e398122fdf3e05ce261e16b7 (diff)
downloadglibc-b957e864209026ab126d1eebedc0a2f0beaf853a.tar.gz
* rt/Makefile (tests): Add tst-aio9 and tst-aio10.
* rt/tst-aio10.c: New file.
Diffstat (limited to 'sysdeps/pthread')
-rw-r--r--sysdeps/pthread/lio_listio.c5
1 files changed, 4 insertions, 1 deletions
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
{