]> gitweb.fluxo.info Git - kvmx.git/commitdiff
Check if Xephyr is running at kvmx_stop
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 12 May 2017 17:19:56 +0000 (14:19 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 12 May 2017 17:19:56 +0000 (14:19 -0300)
kvmx

diff --git a/kvmx b/kvmx
index bd01d21b2ed4b784361f5a1b6e757be9d36e0992..4eba46ddfa1cb2c3c1ef3174a3a6e411069f3df4 100755 (executable)
--- a/kvmx
+++ b/kvmx
@@ -991,6 +991,11 @@ function kvmx_xephyr {
 
 # Close Xephyr client
 function kvmx_xephyr_stop {
+  if [ ! -e "$XEPHYRFILE" ]; then
+    echo "$BASENAME: Xephyr not running for guest $VM"
+    exit 1
+  fi
+
   XEPHYRPID="`cat $XEPHYRFILE`"
 
   if [ ! -z "$XEPHYRPID" ]; then