]> granicus.if.org Git - sysstat/commit
mpstat/pidstat exit immediately when SIGINT caught during 1st interval
authorSebastien GODARD <sysstat@orange.fr.fake>
Fri, 20 Sep 2013 13:09:25 +0000 (15:09 +0200)
committerSebastien GODARD <sysstat@orange.fr.fake>
Fri, 20 Sep 2013 13:09:25 +0000 (15:09 +0200)
commit5562fd2485bfd04014e3ad841033af987c96f090
tree7141f786a4ab5290ff074c303e7c5f4d496dfe6a
parent436f85f3731bfeb3eb8a30d3b7479472a141aba8
mpstat/pidstat exit immediately when SIGINT caught during 1st interval

The mpstat and pidstat commands display their average statistics when
they are interrupted by the user with control-C (SIGINT signal).
But when the signal was caught during the first interval of time (ie.
before any statistics had been displayed), trying to display some
average values is irrelevant. So make them exit immediately in this
case.
mpstat.c
pidstat.c