From 38fc5f3489538af10a86e2b9d79c72648fc05709 Mon Sep 17 00:00:00 2001 From: Joseph Koshy Date: Thu, 4 Aug 2005 03:12:55 +0000 Subject: [PATCH] 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 35e8beca6ba..755e1279f98 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 */