projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
05ac345
)
fix missing timeout argument to futex syscall in __futexwait
author
Patrick Oppenlander
<patrick.oppenlander@gmail.com>
Fri, 1 Jun 2018 00:49:20 +0000
(10:49 +1000)
committer
Rich Felker
<dalias@aerifal.cx>
Wed, 27 Jun 2018 03:31:45 +0000
(23:31 -0400)
src/internal/pthread_impl.h
patch
|
blob
|
history
diff --git
a/src/internal/pthread_impl.h
b/src/internal/pthread_impl.h
index c2deffb9542b2445b93f7c7be8c8bfffae785084..3826bd8eaef5d5fa12cdbbe6a49363ba37337a64 100644
(file)
--- a/
src/internal/pthread_impl.h
+++ b/
src/internal/pthread_impl.h
@@
-161,8
+161,8
@@
static inline void __wake(volatile void *addr, int cnt, int priv)
static inline void __futexwait(volatile void *addr, int val, int priv)
{
if (priv) priv = FUTEX_PRIVATE;
- __syscall(SYS_futex, addr, FUTEX_WAIT|priv, val) != -ENOSYS ||
- __syscall(SYS_futex, addr, FUTEX_WAIT, val);
+ __syscall(SYS_futex, addr, FUTEX_WAIT|priv, val
, 0
) != -ENOSYS ||
+ __syscall(SYS_futex, addr, FUTEX_WAIT, val
, 0
);
}
void __acquire_ptc(void);