diff --git a/src/sunstone/OpenNebulaVNC.rb b/src/sunstone/OpenNebulaVNC.rb index 1219c0b46a..90286f1351 100644 --- a/src/sunstone/OpenNebulaVNC.rb +++ b/src/sunstone/OpenNebulaVNC.rb @@ -208,6 +208,13 @@ class OpenNebulaVNC sleep 1 + begin + Process.getpgid(pid) + + Process.kill('KILL', pid) + rescue + end + if is_running? message="VNC server is still running" STDERR.puts message