fix: has_vmm false positive with pcp

Fix by matching the full procname with pgrep (-x),
so that the 'pmdakvm' process doesn't match.

Closes #394
This commit is contained in:
Stéphane Lesimple 2021-05-25 08:14:22 +02:00
parent a87ace1f98
commit ec2824e824
1 changed files with 1 additions and 1 deletions

View File

@ -3193,7 +3193,7 @@ check_has_vmm()
# for each binary we want to grep, get the pids
for _binary in qemu kvm xenstored xenconsoled
do
for _pid in $(pgrep $_binary)
for _pid in $(pgrep -x $_binary)
do
# resolve the exe symlink, if it doesn't resolve with -m,
# which doesn't even need the dest to exist, it means the symlink