From 740421ffbbbc425c1b6362c26e80a63dc412bd34 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 12 May 2017 14:19:56 -0300 Subject: Check if Xephyr is running at kvmx_stop --- kvmx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kvmx b/kvmx index bd01d21..4eba46d 100755 --- 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 -- cgit v1.2.3