diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2017-09-22 11:09:59 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-09-22 11:09:59 -0300 |
commit | f75a8191d518fda5fab1880c4957aa72cd92b836 (patch) | |
tree | 98a9c78b023b84eab1a0665e672cd9e029342081 | |
parent | 53913be96b3a85986558bab16a76bb01e3f52a5e (diff) | |
download | kvmx-f75a8191d518fda5fab1880c4957aa72cd92b836.tar.gz kvmx-f75a8191d518fda5fab1880c4957aa72cd92b836.tar.bz2 |
Better process check at kvmx_running
-rwxr-xr-x | kvmx | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 $? } |