On Thu, 28 Apr 2022 20:54:02 -0500, Scott Cheloha wrote: > Once again, using nanosleep(2) here to print the stats periodically is > flawed. The period will drift. Using setitimer(2)/sigsuspend(2) is > better.
Yes, I agree that an interval timer is a better fit. > While here: > > - We don't need the hundred million second upper bound anymore. Just > cap the wait at UINT_MAX seconds. > > - Use the idiomatic strtonum(3) error message format, it works here. OK millert@ - todd
