Correctly print system-wide PMC counts for short-lived command lines.

Reported by:	cracauer
MFC after:	3 days
This commit is contained in:
Joseph Koshy 2005-08-04 03:12:55 +00:00
parent 16a0ad03b8
commit 38fc5f3489
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=148688

View File

@ -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 */