Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Hutchinson <mhutchinson@novell.com>2010-10-05 21:38:52 +0400
committerMichael Hutchinson <mhutchinson@novell.com>2010-10-05 21:38:52 +0400
commit3b6f5c33088c53280980218f82168e3cba00a25b (patch)
tree4c64cd2c220926667e29ec5f57833aa6a533a127
parent579a0ca72b996d11a50ddf6ddb4f67e59995072d (diff)
[io-layer] Cope with pids > 16 bits
Fixes an issue in Process where "pseudo-handles" for processes with pids > 16 bits would overflow and start getting treated as normal handles. This would frequently segfault MonoDevelop on MacOS.
-rw-r--r--mono/io-layer/process-private.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/mono/io-layer/process-private.h b/mono/io-layer/process-private.h
index dc952832288..8d1c80abde3 100644
--- a/mono/io-layer/process-private.h
+++ b/mono/io-layer/process-private.h
@@ -17,12 +17,8 @@
#define _WAPI_PROCESS_CURRENT (gpointer)0xFFFFFFFF
/* This marks a system process that we don't have a handle on */
-/* FIXME: cope with pids > 16bit */
-#if defined(__HAIKU__)
+/* FIXME: cope with pids > 31bit? */
#define _WAPI_PROCESS_UNHANDLED_PID_MASK 0x7FFFFFFF
-#else
-#define _WAPI_PROCESS_UNHANDLED_PID_MASK 0x7FFF
-#endif
#define _WAPI_PROCESS_UNHANDLED (-1 & ~_WAPI_PROCESS_UNHANDLED_PID_MASK)
extern gpointer _wapi_process_duplicate (void);