diff options
-rw-r--r-- | usr.sbin/pmcstat/pmcstat.c | 3 |
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 */ |