projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make nested type loading lazier.
[mono.git]
/
mono
/
metadata
/
attach.c
diff --git
a/mono/metadata/attach.c
b/mono/metadata/attach.c
index c616d6df16f20dc64ba496f3d556b8741a3b1a29..b14709aeabc85b89e7e42f4e39c9b2c6a0d01a89 100644
(file)
--- a/
mono/metadata/attach.c
+++ b/
mono/metadata/attach.c
@@
-4,13
+4,13
@@
* Author:
* Zoltan Varga (vargaz@gmail.com)
*
* Author:
* Zoltan Varga (vargaz@gmail.com)
*
- *
(C) 2007-2008 Novell, Inc.
+ *
Copyright 2007-2009 Novell, Inc (http://www.novell.com)
*/
#include <config.h>
#include <glib.h>
*/
#include <config.h>
#include <glib.h>
-#ifdef
PLATFORM
_WIN32
+#ifdef
HOST
_WIN32
#define DISABLE_ATTACH
#endif
#ifndef DISABLE_ATTACH
#define DISABLE_ATTACH
#endif
#ifndef DISABLE_ATTACH
@@
-366,7
+366,12
@@
ipc_connect (void)
*/
/* FIXME: Use TMP ? */
pw = NULL;
*/
/* FIXME: Use TMP ? */
pw = NULL;
+#ifdef HAVE_GETPWUID_R
res = getpwuid_r (getuid (), &pwbuf, buf, sizeof (buf), &pw);
res = getpwuid_r (getuid (), &pwbuf, buf, sizeof (buf), &pw);
+#else
+ pw = getpwuid(getuid ());
+ res = pw != NULL ? 0 : 1;
+#endif
if (res != 0) {
fprintf (stderr, "attach: getpwuid_r () failed.\n");
return;
if (res != 0) {
fprintf (stderr, "attach: getpwuid_r () failed.\n");
return;
@@
-475,7
+480,7
@@
transport_start_receive (void)
if (!listen_fd)
return;
if (!listen_fd)
return;
- receiver_thread_handle =
CreateT
hread (NULL, 0, receiver_thread, NULL, 0, &tid);
+ receiver_thread_handle =
mono_create_t
hread (NULL, 0, receiver_thread, NULL, 0, &tid);
g_assert (receiver_thread_handle);
}
g_assert (receiver_thread_handle);
}
@@
-501,7
+506,7
@@
receiver_thread (void *arg)
/* Ask the runtime to not abort this thread */
//mono_thread_current ()->flags |= MONO_THREAD_FLAG_DONT_MANAGE;
/* Ask the runtime to not wait for this thread */
/* Ask the runtime to not abort this thread */
//mono_thread_current ()->flags |= MONO_THREAD_FLAG_DONT_MANAGE;
/* Ask the runtime to not wait for this thread */
- mono_thread_current ()->state |= ThreadState_Background;
+ mono_thread_
internal_
current ()->state |= ThreadState_Background;
while (TRUE) {
char *cmd, *agent_name, *agent_args;
while (TRUE) {
char *cmd, *agent_name, *agent_args;