diff options
author | dchagin <dchagin@FreeBSD.org> | 2014-06-03 04:29:26 +0000 |
---|---|---|
committer | dchagin <dchagin@FreeBSD.org> | 2014-06-03 04:29:26 +0000 |
commit | 403ddf0c10f4587ee3dfdf27513fde189d7f4dbf (patch) | |
tree | 7dff35aef9b4c82f4d22540ab5a5cdaab139de8a /lib/libgssapi/gss_decapsulate_token.c | |
parent | a879e1050f17129e4e00dddc79824bd678b29b7d (diff) | |
download | FreeBSD-src-403ddf0c10f4587ee3dfdf27513fde189d7f4dbf.zip FreeBSD-src-403ddf0c10f4587ee3dfdf27513fde189d7f4dbf.tar.gz |
MFC r266924:
Glibc was switched to the FUTEX_WAIT_BITSET op and CLOCK_REALTIME
flag has been added instead of FUTEX_WAIT to replace the FUTEX_WAIT
logic which needs to do gettimeofday() calls before the futex syscall
to convert the absolute timeout to a relative timeout.
Before this the CLOCK_MONOTONIC used by the FUTEX_WAIT_BITSET op.
When the FUTEX_CLOCK_REALTIME is specified the timeout is an absolute
time, not a relative time. Rework futex_wait to handle this.
On the side fix the futex leak in error case and remove useless
parentheses.
Properly calculate the timeout for the CLOCK_MONOTONIC case.
Tested by: Hans Petter Selasky
Diffstat (limited to 'lib/libgssapi/gss_decapsulate_token.c')
0 files changed, 0 insertions, 0 deletions