/*
*----------------------------------------------------------------------
*
- * Hostinfo_TouchBackDoor --
+ * Hostinfo_TouchBackDoor --
*
* Access the backdoor. This is used to determine if we are
* running in a VM or on a physical host. On a physical host
* if not.
*
* Side effects:
- * Exception if not in a VM.
+ * Exception if not in a VM.
*
*----------------------------------------------------------------------
*/
Bool
Hostinfo_TouchBackDoor(void)
{
- /*
- * XXX: This can cause Apple's Crash Reporter to erroneously display
- * a crash, even though the process has caught the SIGILL and handled
- * it.
- */
-
-#if !defined(__APPLE__) && (defined(__i386__) || defined(__x86_64__))
+#if defined(__i386__) || defined(__x86_64__)
uint32 eax;
uint32 ebx;
uint32 ecx;
state->ctx.version = TOOLS_CORE_API_V1;
state->ctx.name = state->name;
state->ctx.errorCode = EXIT_SUCCESS;
+#if defined(__APPLE__)
+ /*
+ * Mac OS doesn't use g_main_loop_run(), so need to create the loop as
+ * "running".
+ */
+ state->ctx.mainLoop = g_main_loop_new(gctx, TRUE);
+#else
state->ctx.mainLoop = g_main_loop_new(gctx, FALSE);
+#endif
state->ctx.isVMware = VmCheck_IsVirtualWorld();
g_main_context_unref(gctx);