summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/ssh.c
diff options
context:
space:
mode:
authorcheloha <cheloha@openbsd.org>2019-12-20 23:39:01 +0000
committercheloha <cheloha@openbsd.org>2019-12-20 23:39:01 +0000
commitc672e670483e64beb92e18b92467ba4bf2b73852 (patch)
tree59f14e0cf8adbbbfccf41d9761f728339ae6f367 /usr.bin/ssh/ssh.c
parentRemove blurb about IDN support, which we disable. (diff)
downloadwireguard-openbsd-c672e670483e64beb92e18b92467ba4bf2b73852.tar.xz
wireguard-openbsd-c672e670483e64beb92e18b92467ba4bf2b73852.zip
Fix the sem_timedwait(3) test.
The recent clock_getres(2) changes made it so that clock_getres(2) returns the granularity of the active timecounter. This is usually much finer than that of hardclock(9), so we can no longer use clock_getres(2) to fudge our upper timeout return bound. The test is failing because it thinks our sem_timedwait(3) call is returning with too much latency. We can still get the hardclock(9) granularity via the kern.clockrate sysctl(2), though, so just use that to fudge the upper bound. While here, we ought to be checking that we return after the requested absolute timeout, not that we were asleep for a particular interval. Breakage reported by mpi@. ok mpi@
Diffstat (limited to 'usr.bin/ssh/ssh.c')
0 files changed, 0 insertions, 0 deletions