]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kvm tools: Stop guest if SDL window is closed
authorPekka Enberg <penberg@kernel.org>
Wed, 10 Aug 2011 18:48:11 +0000 (21:48 +0300)
committerPekka Enberg <penberg@kernel.org>
Wed, 10 Aug 2011 18:48:11 +0000 (21:48 +0300)
commit0d7f9a389e2f0826a8cf01aae58e367539662d1c
tree3f026dbf9900f4b73a58025ad38741b5a74ce8c1
parent0eef037f59490afca5ed9d42ed3b13ba3e8eb770
kvm tools: Stop guest if SDL window is closed

Send SIGKVMSTOP signal to the process if the SDL window is closed. This fixes
an annoying problem where closing the window makes the guest seem like it froze
although it's really running in the background but the UI is unusable.

Cc: Asias He <asias.hejun@gmail.com>
Cc: Cyrill Gorcunov <gorcunov@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Prasad Joshi <prasadjoshi124@gmail.com>
Cc: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/ui/sdl.c