]> granicus.if.org Git - sysstat/commit
pidstat: Monitor and show stats at the end of the exec program
authorParth Shah <parths1229@gmail.com>
Wed, 31 Mar 2021 11:59:06 +0000 (17:29 +0530)
committerParth Shah <parths1229@gmail.com>
Wed, 31 Mar 2021 12:03:18 +0000 (17:33 +0530)
commitb1c503ba990615602d0b2d3b4ad9521b0c8219b2
treea8a79a396f92a3893f5c89df27420a590c607d49
parent3e400d593af86ee2cb53d7780c771b3603acbfc7
pidstat: Monitor and show stats at the end of the exec program

Do not set alarms for undefined value of the interval. Also allow to
print stats even if the SIGINT/SIGCHLD occurs before first interval.
Hence, the command `pidstat -e <prog-name>`
will monitor the prog-name process and show the PID stats after the
prog-name is completed its execution.

Signed-off-by: Parth Shah <parths1229@gmail.com>
pidstat.c