projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c151a26
)
Fix the emulator exit hang up issue
author
Jun Tian
<jun.j.tian@intel.com>
Fri, 14 Dec 2012 00:43:15 +0000
(08:43 +0800)
committer
Jun Tian
<jun.j.tian@intel.com>
Fri, 14 Dec 2012 00:43:15 +0000
(08:43 +0800)
cpus.c
patch
|
blob
|
history
diff --git
a/cpus.c
b/cpus.c
index
9def8b8
..
4659db4
100644
(file)
--- a/
cpus.c
+++ b/
cpus.c
@@
-859,6
+859,13
@@
static void qemu_cpu_kick_thread(CPUArchState *env)
fprintf(stderr, "qemu:%s: %s", __func__, strerror(err));
exit(1);
}
+/* The cpu thread cannot catch it reliably when shutdown the guest on Mac.
+ * We can double check it and resend it
+ */
+#ifdef CONFIG_DARWIN
+ if (!exit_request)
+ cpu_signal(0);
+#endif
#else /* _WIN32 */
if (!qemu_cpu_is_self(env)) {
SuspendThread(cpu->hThread);