aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xkvmx6
1 files changed, 5 insertions, 1 deletions
diff --git a/kvmx b/kvmx
index d52cc8a..ae554bb 100755
--- a/kvmx
+++ b/kvmx
@@ -519,7 +519,11 @@ function kvmx_running {
return 1
fi
- ps $PID &> /dev/null
+ # Simpler check
+ #ps $PID &> /dev/null
+
+ # Better check were process should match a qemu binary
+ ps -o command $PID | grep -q '^qemu'
return $?
}