public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kvm tools: set "done" to true on SDL window close
@ 2013-04-12  6:49 Lin Ming
  2013-04-12  7:12 ` Pekka Enberg
  0 siblings, 1 reply; 2+ messages in thread
From: Lin Ming @ 2013-04-12  6:49 UTC (permalink / raw)
  To: kvm; +Cc: Pekka Enberg

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(-)

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;
-- 
1.7.2.5


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] kvm tools: set "done" to true on SDL window close
  2013-04-12  6:49 [PATCH] kvm tools: set "done" to true on SDL window close Lin Ming
@ 2013-04-12  7:12 ` Pekka Enberg
  0 siblings, 0 replies; 2+ messages in thread
From: Pekka Enberg @ 2013-04-12  7:12 UTC (permalink / raw)
  To: Lin Ming; +Cc: kvm

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!


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-04-12  7:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-12  6:49 [PATCH] kvm tools: set "done" to true on SDL window close Lin Ming
2013-04-12  7:12 ` Pekka Enberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox