pgrep exists on linux and freebsd, while pidof is linux-specific. Some sources even refer to pidof as deprecated. Go ahead and use pgrep everywhere. This passes on all linux architectures on our buildbot.
@trasz does this work for freebsd?
评论 (2)
#2 – jepler 于 2016-07-13
This needs further investigation. pgrep wat returns lots of processes, more than pidof -x wat.
#1 – jepler 于 2016-06-27
will push a fresh version with merge conflict fixed soon.