diff options
author | Patrick Oppenlander <patrick.oppenlander@gmail.com> | 2018-06-01 10:49:20 +1000 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2018-06-26 23:31:45 -0400 |
commit | a0d64dccbc8d0a2decbe61be706a02ac706ed45a (patch) | |
tree | acf415f2c8e5df6b9f5a23f842b56363eb53c5f5 | |
parent | 05ac345f895098657cf44d419b5d572161ebaf43 (diff) | |
download | musl-a0d64dccbc8d0a2decbe61be706a02ac706ed45a.tar.gz musl-a0d64dccbc8d0a2decbe61be706a02ac706ed45a.tar.bz2 musl-a0d64dccbc8d0a2decbe61be706a02ac706ed45a.tar.xz musl-a0d64dccbc8d0a2decbe61be706a02ac706ed45a.zip |
fix missing timeout argument to futex syscall in __futexwait
-rw-r--r-- | src/internal/pthread_impl.h | 4 |
1 files 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); |