From: Lin Ming <minggr@gmail.com>
To: kvm@vger.kernel.org
Cc: Pekka Enberg <penberg@kernel.org>
Subject: [PATCH] kvm tools: set "done" to true on SDL window close
Date: Fri, 12 Apr 2013 14:49:08 +0800 [thread overview]
Message-ID: <1365749348-10483-1-git-send-email-minggr@gmail.com> (raw)
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
next reply other threads:[~2013-04-12 6:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-12 6:49 Lin Ming [this message]
2013-04-12 7:12 ` [PATCH] kvm tools: set "done" to true on SDL window close Pekka Enberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1365749348-10483-1-git-send-email-minggr@gmail.com \
--to=minggr@gmail.com \
--cc=kvm@vger.kernel.org \
--cc=penberg@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox