diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2017-08-29 20:24:14 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-08-29 20:24:14 -0300 |
commit | 8cbff6187b8eaa6304c176365160ca1b3444b00f (patch) | |
tree | 67c90cb6c4ede5ca08d57904d2cf5f97d49f67f8 | |
parent | c5ed6d6acb0a149a4a09b55ad545fd5896b6d428 (diff) | |
download | kvmx-8cbff6187b8eaa6304c176365160ca1b3444b00f.tar.gz kvmx-8cbff6187b8eaa6304c176365160ca1b3444b00f.tar.bz2 |
Kill spice client on kvmx_suspend
-rwxr-xr-x | kvmx | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -499,6 +499,12 @@ function kvmx_suspend { PID="`cat $PIDFILE`" kill -STOP $PID + + SPICEPID="`cat $SPICEFILE`" + + if ps $SPICEPID &> /dev/null; then + kill $SPICEPID + fi } # Check if a guest is running |