From: Patrick Oppenlander Date: Fri, 1 Jun 2018 00:49:20 +0000 (+1000) Subject: fix missing timeout argument to futex syscall in __futexwait X-Git-Tag: v1.1.20~54 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a0d64dccbc8d0a2decbe61be706a02ac706ed45a;p=oweals%2Fmusl.git fix missing timeout argument to futex syscall in __futexwait --- diff --git a/src/internal/pthread_impl.h b/src/internal/pthread_impl.h index c2deffb9..3826bd8e 100644 --- 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);