of course this should have been: the default value for count is 1 for sar but "endless" for pidstat.
maybe this patch is already good enough (untested! don't apply)
diff -Nur sysstat-8.1.2.orig/man/pidstat.1 sysstat-8.1.2.new/man/pidstat.1 --- sysstat-8.1.2.orig/man/pidstat.1 2007-11-10 14:41:32.000000000 +0100 +++ sysstat-8.1.2.new/man/pidstat.1 2008-04-12 15:07:58.000000000 +0200 @@ -41,17 +41,10 @@ .I count parameter can be specified in conjunction with the .I interval -parameter if this one is not set to zero. The value of +parameter. The default value for the .I count -determines the number of reports generated at -.I interval -seconds apart. If the -.I interval -parameter is specified without the -.I count -parameter, the -.B pidstat -command generates reports continuously. +parameter is 1. If its value is set to zero, then reports are +generated continuously. You can select information about specific task activities using flags. Not specifying any flags selects only CPU activity. diff -Nur sysstat-8.1.2.orig/pidstat.c sysstat-8.1.2.new/pidstat.c --- sysstat-8.1.2.orig/pidstat.c 2008-03-10 11:52:24.000000000 +0100 +++ sysstat-8.1.2.new/pidstat.c 2008-04-12 15:01:48.000000000 +0200 @@ -1632,7 +1632,7 @@ interval = atol(argv[opt++]); if (interval < 0) usage(argv[0]); - count = -1; + count = 1; } else if (count <= 0) { /* Get count value */ @@ -1640,7 +1640,7 @@ !interval) usage(argv[0]); count = atol(argv[opt++]); - if (count < 1) + if (count < 0) usage(argv[0]); } else
PS: it seems my mail provider has some problems (=> can't receive mails at the moment)