From a0d64dccbc8d0a2decbe61be706a02ac706ed45a Mon Sep 17 00:00:00 2001 From: Patrick Oppenlander Date: Fri, 1 Jun 2018 10:49:20 +1000 Subject: [PATCH] fix missing timeout argument to futex syscall in __futexwait --- src/internal/pthread_impl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);