summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorjkoshy <jkoshy@FreeBSD.org>2005-08-04 03:12:55 +0000
committerjkoshy <jkoshy@FreeBSD.org>2005-08-04 03:12:55 +0000
commit0796704e4d4790a369dc023145512a68df8efb6a (patch)
tree2ff707cb802697102a0d57015b314dc1ae7d0dea /usr.sbin
parentb7a6c274ca4a3363b54685c8dd35edfd4dc21920 (diff)
downloadFreeBSD-src-0796704e4d4790a369dc023145512a68df8efb6a.zip
FreeBSD-src-0796704e4d4790a369dc023145512a68df8efb6a.tar.gz
Correctly print system-wide PMC counts for short-lived command lines.
Reported by: cracauer MFC after: 3 days
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pmcstat/pmcstat.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.sbin/pmcstat/pmcstat.c b/usr.sbin/pmcstat/pmcstat.c
index 35e8bec..755e127 100644
--- a/usr.sbin/pmcstat/pmcstat.c
+++ b/usr.sbin/pmcstat/pmcstat.c
@@ -881,6 +881,9 @@ main(int argc, char **argv)
if (args.pa_flags & (FLAG_HAS_OUTPUT_LOGFILE |
FLAG_HAS_PIPE))
runstate = pmcstat_close_log(&args);
+ else
+ runstate = PMCSTAT_FINISHED;
+ do_print = 1;
break;
case EVFILT_READ: /* log file data is present */
OpenPOWER on IntegriCloud