Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 335684 Details for
Bug 452184
sys-libs/glibc-2.17: patches for hppa
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch 2, fix errnum checking for futex()
glibc-2.17-hppa-nptl-EAGAIN.diff (text/plain), 1.83 KB, created by
Guy Martin (RETIRED)
on 2013-01-15 07:54:07 UTC
(
hide
)
Description:
Patch 2, fix errnum checking for futex()
Filename:
MIME Type:
Creator:
Guy Martin (RETIRED)
Created:
2013-01-15 07:54:07 UTC
Size:
1.83 KB
patch
obsolete
>diff --git a/nptl/pthread_mutex_trylock.c b/nptl/pthread_mutex_trylock.c >index 8f5279d..e0d2b3b 100644 >--- a/nptl/pthread_mutex_trylock.c >+++ b/nptl/pthread_mutex_trylock.c >@@ -239,7 +239,8 @@ __pthread_mutex_trylock (mutex) > private), 0, 0); > > if (INTERNAL_SYSCALL_ERROR_P (e, __err) >- && INTERNAL_SYSCALL_ERRNO (e, __err) == EWOULDBLOCK) >+ && ((INTERNAL_SYSCALL_ERRNO (e, __err) == EWOULDBLOCK) >+ || (INTERNAL_SYSCALL_ERRNO (e, __err) == EAGAIN))) > { > THREAD_SETMEM (THREAD_SELF, robust_head.list_op_pending, NULL); > >diff --git a/nptl/sysdeps/unix/sysv/linux/sem_timedwait.c b/nptl/sysdeps/unix/sysv/linux/sem_timedwait.c >index da93c48..32ed35d 100644 >--- a/nptl/sysdeps/unix/sysv/linux/sem_timedwait.c >+++ b/nptl/sysdeps/unix/sysv/linux/sem_timedwait.c >@@ -94,7 +94,7 @@ sem_timedwait (sem_t *sem, const struct timespec *abstime) > rt.tv_sec = sec; > rt.tv_nsec = nsec; > err = do_futex_timed_wait(isem, &rt); >- if (err != 0 && err != -EWOULDBLOCK) >+ if (err != 0 && err != -EWOULDBLOCK && err != -EAGAIN) > { > __set_errno (-err); > err = -1; >diff --git a/nptl/sysdeps/unix/sysv/linux/sem_wait.c b/nptl/sysdeps/unix/sysv/linux/sem_wait.c >index 6b94d37..6dbd22b 100644 >--- a/nptl/sysdeps/unix/sysv/linux/sem_wait.c >+++ b/nptl/sysdeps/unix/sysv/linux/sem_wait.c >@@ -67,7 +67,7 @@ __new_sem_wait (sem_t *sem) > while (1) > { > err = do_futex_wait(isem); >- if (err != 0 && err != -EWOULDBLOCK) >+ if (err != 0 && err != -EWOULDBLOCK && err != -EAGAIN) > { > __set_errno (-err); > err = -1; >@@ -112,7 +112,7 @@ __old_sem_wait (sem_t *sem) > /* Disable asynchronous cancellation. */ > __pthread_disable_asynccancel (oldtype); > } >- while (err == 0 || err == -EWOULDBLOCK); >+ while (err == 0 || err == -EWOULDBLOCK || err == -EAGAIN); > > __set_errno (-err); > return -1;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 452184
:
335682
| 335684