diff mbox

kvm tools: set "done" to true on SDL window close

Message ID 1365749348-10483-1-git-send-email-minggr@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Ming Lin April 12, 2013, 6:49 a.m. UTC
Currently, SDL doesn't exit on window close because it stuck in
sdl__stop because "done" is not set to true.

Fix it by setting "done" to true on window close.

Signed-off-by: Lin Ming <minggr@gmail.com>
---
 tools/kvm/ui/sdl.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Comments

Pekka Enberg April 12, 2013, 7:12 a.m. UTC | #1
On 04/12/2013 09:49 AM, Lin Ming wrote:
> Currently, SDL doesn't exit on window close because it stuck in
> sdl__stop because "done" is not set to true.
>
> Fix it by setting "done" to true on window close.
>
> Signed-off-by: Lin Ming <minggr@gmail.com>

Applied, thanks!

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/tools/kvm/ui/sdl.c b/tools/kvm/ui/sdl.c
index 9994490..a260002 100644
--- a/tools/kvm/ui/sdl.c
+++ b/tools/kvm/ui/sdl.c
@@ -265,6 +265,7 @@  static void *sdl__thread(void *p)
 		return NULL;
 	}
 exit:
+	done = true;
 	kvm_cpu__reboot(fb->kvm);
 
 	return NULL;