In #920, we modified utils.stop_standing_subprocess to use pgrep to collect subprocess tree. While it turned out that not all Linux hosts has pgrep installed.
Thus, this PR changes to use pgrep for Mac OS while ps for Linux. I verified that most Mac OS hosts have pgrep installed, otherwise we can let users install it.
In #920, we modified
utils.stop_standing_subprocess
to usepgrep
to collect subprocess tree. While it turned out that not all Linux hosts haspgrep
installed.Thus, this PR changes to use
pgrep
for Mac OS whileps
for Linux. I verified that most Mac OS hosts havepgrep
installed, otherwise we can let users install it.This change is![Reviewable](https://reviewable.io/review_button.svg)