From 0796704e4d4790a369dc023145512a68df8efb6a Mon Sep 17 00:00:00 2001 From: jkoshy Date: Thu, 4 Aug 2005 03:12:55 +0000 Subject: Correctly print system-wide PMC counts for short-lived command lines. Reported by: cracauer MFC after: 3 days --- usr.sbin/pmcstat/pmcstat.c | 3 +++ 1 file changed, 3 insertions(+) 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 */ -- cgit v1.1