iostat(8): implement periodic display with setitimer(2)
authorcheloha <cheloha@openbsd.org>
Wed, 28 Dec 2022 20:56:37 +0000 (20:56 +0000)
committercheloha <cheloha@openbsd.org>
Wed, 28 Dec 2022 20:56:37 +0000 (20:56 +0000)
commit20ec15d66a1ba0c1089f145a482b326eca3aef5f
treef0c166c70bbe48f2f947a9a9fe8713be1c785ee9
parent168c28e78e7655843a32f776700d8b87063224ad
iostat(8): implement periodic display with setitimer(2)

Prefer setitimer(2)+sigsuspend(2) to nanosleep(2) when performing
periodic work.  The latter drifts.

Link: https://marc.info/?l=openbsd-tech&m=167068674625838&w=2
ok millert@
usr.sbin/iostat/iostat.c