Page MenuHomeFreeBSD

iostat(8) should print statistics one more time on SIGINT.
ClosedPublic

Authored by asomers on Dec 9 2015, 5:22 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 20, 2:09 PM
Unknown Object (File)
Thu, Nov 7, 12:20 PM
Unknown Object (File)
Tue, Nov 5, 11:00 PM
Unknown Object (File)
Mon, Nov 4, 1:27 PM
Unknown Object (File)
Sep 30 2024, 3:08 PM
Unknown Object (File)
Sep 30 2024, 5:10 AM
Unknown Object (File)
Sep 24 2024, 5:44 AM
Unknown Object (File)
Sep 24 2024, 12:44 AM
Subscribers

Details

Summary

When iostat(8) receives SIGINT while running with "-w" or "-c", it will now
print statistics one more time before exiting. Also, it now implements the
wait using setitimer instead of sleep, so the waits will be more consistent
when the system is heavily loaded.

Test Plan
  1. Run iostat -w3
  2. Generate some load on the tty by running "yes" on another console
  3. Press CTRL-C on iostat's console
  4. Verify that reasonable stats are printed one last time as iostat exits

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

asomers retitled this revision from to iostat(8) should print statistics one more time on SIGINT..
asomers updated this object.
asomers edited the test plan for this revision. (Show Details)
asomers added a reviewer: ken.
asomers added a subscriber: will.

Looks good to me, thanks!

In D4473#94114, @ken wrote:

Looks good to me, thanks!

If you're done, could you please Accept the revision?

ken edited edge metadata.

Sure, looks good!

This revision is now accepted and ready to land.Dec 9 2015, 6:03 PM
This revision was automatically updated to reflect the committed changes.