diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-06-24 02:50:16 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-06-24 02:50:16 +0000 |
commit | 67b78ef91b1441c7f94fe03e1bad161d5912f5ac (patch) | |
tree | ae9686b619a6a88901b6ecae921be3a8d1b48e47 /sysdeps/pthread/aio_suspend.c | |
parent | 7b0a32a30505e02f2b138b1695096b0ddb2ab62d (diff) | |
download | glibc-67b78ef91b1441c7f94fe03e1bad161d5912f5ac.zip glibc-67b78ef91b1441c7f94fe03e1bad161d5912f5ac.tar.gz glibc-67b78ef91b1441c7f94fe03e1bad161d5912f5ac.tar.bz2 |
Update.
* sysdeps/pthread/aio_misc.h: Mark __aio_requests_mutex,
__aio_enqueue_request, __aio_find_req, __aio_find_req_fd,
__aio_free_request, __aio_notify, and __aio_sigqueue as hidden.
* sysdeps/pthread/aio_suspend.c (aio_suspend): Set errno to the result
of pthread_cond_wait if there was an error. Use pthread_cleanup_*
instead of __lbic_cleanup_region_*.
Diffstat (limited to 'sysdeps/pthread/aio_suspend.c')
-rw-r--r-- | sysdeps/pthread/aio_suspend.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sysdeps/pthread/aio_suspend.c b/sysdeps/pthread/aio_suspend.c index 92cac81..8bc8f0e 100644 --- a/sysdeps/pthread/aio_suspend.c +++ b/sysdeps/pthread/aio_suspend.c @@ -141,7 +141,7 @@ aio_suspend (list, nent, timeout) .nent = nent }; - __libc_cleanup_region_start (1, cleanup, &clparam); + pthread_cleanup_push (cleanup, &clparam); if (timeout == NULL) result = pthread_cond_wait (&cond, &__aio_requests_mutex); @@ -165,7 +165,7 @@ aio_suspend (list, nent, timeout) &abstime); } - __libc_cleanup_region_end (0); + pthread_cleanup_pop (0); } /* Now remove the entry in the waiting list for all requests @@ -199,8 +199,8 @@ aio_suspend (list, nent, timeout) form expected from `aio_suspend'. */ if (result == ETIMEDOUT) __set_errno (EAGAIN); - else if (result == EINTR) - __set_errno (EINTR); + else + __set_errno (result); result = -1; } |