Messages in this thread | | | Date | Fri, 16 Oct 2015 12:21:51 +0200 (CEST) | From | Thomas Gleixner <> | Subject | Re: futex timeout not working? (bisected) |
| |
Heiko,
On Thu, 15 Oct 2015, Heiko Carstens wrote: > /* We wait for half a second. */ > ts.tv_nsec += 500000000; > if (ts.tv_nsec >= 1000000000) > { > ++ts.tv_sec; > ts.tv_nsec -= 1000000000; > } > > ret = syscall (__NR_futex, &futex_word, op, expected, ts, NULL, FUTEX_BITSET_MATCH_ANY);
If you actually hand in a pointer to 'ts' then the program works as expected even with the commit in question applied.
Thanks,
tglx
| |