Use getpid instead of GetCurrentProcessId as the latter calls into io-layer which...
authorJonathan Chambers <jonathan@unity3d.com>
Fri, 13 Apr 2012 20:04:17 +0000 (16:04 -0400)
committerJonathan Chambers <jonathan@unity3d.com>
Mon, 16 Apr 2012 13:48:54 +0000 (09:48 -0400)
mono/mini/debugger-agent.c

index 950fc5b97d4fa299119f07c748a9af05bf1f485b..b2c4572e5bae971fa7090d8ee5f2024da6b621c5 100644 (file)
@@ -858,7 +858,7 @@ mono_debugger_agent_parse_options (char *options)
                /* Waiting for deferred attachment */
                agent_config.defer = TRUE;
                if (agent_config.address == NULL) {
-                       agent_config.address = g_strdup_printf ("0.0.0.0:%u", 56000 + (GetCurrentProcessId () % 1000));
+                       agent_config.address = g_strdup_printf ("0.0.0.0:%u", 56000 + (getpid () % 1000));
                }
        }