summaryrefslogtreecommitdiff
path: root/distrib
diff options
context:
space:
mode:
authorScott Soule Cheloha <cheloha@cvs.openbsd.org>2022-05-05 22:36:37 +0000
committerScott Soule Cheloha <cheloha@cvs.openbsd.org>2022-05-05 22:36:37 +0000
commita7e9beb3826af9131dc5c3c85cd4b6957b37f007 (patch)
tree115215d41db934d038fe53970d6912ccd5f56e62 /distrib
parent9fc042b631d92939238b0839e89236639e5c056d (diff)
kstat(1): implement wait with setitimer(2) instead of nanosleep(2)
kstat(1)'s wait period drifts because nanosleep(2) uses a relative timeout. If we use setitimer(2)/sigsuspend(2) the period does not drift. While here, bump the upper bound for wait up to UINT_MAX and switch to the normal strtonum(3) error message format. With input from kn@. Tweaked by bluhm@ to block SIGALRM with sigprocmask(2) while we're outside of sigsuspend(2). Thread: https://marc.info/?l=openbsd-tech&m=160038548111187&w=2 Earlier version ok millert@. ok bluhm@
Diffstat (limited to 'distrib')
0 files changed, 0 insertions, 0 deletions