mirror of
git://git.musl-libc.org/musl
synced 2024-12-18 21:05:13 +00:00
fix missing timeout argument to futex syscall in __futexwait
This commit is contained in:
parent
05ac345f89
commit
a0d64dccbc
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user