aboutsummaryrefslogtreecommitdiff
path: root/mstat.c
Commit message (Collapse)AuthorAgeFilesLines
* Fixes:Joseph Hunkeler2023-02-151-9/+44
| | | | | | | * Change Option and parse_options to static * Remove program name from Option structure * Implement sample limit (arg: -l) * Prevent buffer overflow while constructing absolute path
* Bugfix: Transfer control of standard input to child processJoseph Hunkeler2023-02-131-1/+14
| | | | | | | * print a linefeed when an interrupt signal fires to avoid "^Cmessages" * sleep before exiting to allow time for stdout/stderr to flush from the child process * replace "data written" with "MSTAT file written" * print absolute path to data file at exit
* Do not clear terminal windows while servicing signal(s)Joseph Hunkeler2023-02-121-2/+10
|
* More stdout message modificationJoseph Hunkeler2023-02-121-18/+45
| | | | | | | * Clear terminal (if possible) and pretty print all fields for each sample * Clean up usage statement(s) * mstat_find_program returns absolute path of "name" on success if "name" begins with "./" * Zero option structure(s) at runtime
* Move filename modification below PID assignmentJoseph Hunkeler2023-02-101-20/+20
|
* Add optionsJoseph Hunkeler2023-02-101-33/+133
| | | | | | * -o sets the output directory * cleaned up various stdout/stderr messages * add ability to spawn a process and monitor it
* Initial commitJoseph Hunkeler2022-09-141-0/+208