fix missing timeout argument to futex syscall in __futexwait
authorPatrick Oppenlander <patrick.oppenlander@gmail.com>
Fri, 1 Jun 2018 00:49:20 +0000 (10:49 +1000)
committerRich Felker <dalias@aerifal.cx>
Wed, 27 Jun 2018 03:31:45 +0000 (23:31 -0400)
src/internal/pthread_impl.h

index c2deffb9542b2445b93f7c7be8c8bfffae785084..3826bd8eaef5d5fa12cdbbe6a49363ba37337a64 100644 (file)
@@ -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);