From: Jun Tian Date: Fri, 14 Dec 2012 00:43:15 +0000 (+0800) Subject: Fix the emulator exit hang up issue X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.1~1282 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7fc80525e9f197c9a655b08b2cf182d03048a365;p=sdk%2Femulator%2Fqemu.git Fix the emulator exit hang up issue --- diff --git a/cpus.c b/cpus.c index 9def8b8b69..4659db41a4 100644 --- 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);