[MLton-commit] r7193
Matthew Fluet
fluet at mlton.org
Tue Jun 23 07:34:13 PDT 2009
Use a proper spawn mode on Cygwin. SPAWN_MODE only needed on platforms with HAS_SPAWN.
----------------------------------------------------------------------
U mlton/trunk/runtime/platform/cygwin.h
U mlton/trunk/runtime/platform.h
----------------------------------------------------------------------
Modified: mlton/trunk/runtime/platform/cygwin.h
===================================================================
--- mlton/trunk/runtime/platform/cygwin.h 2009-06-22 19:03:34 UTC (rev 7192)
+++ mlton/trunk/runtime/platform/cygwin.h 2009-06-23 14:34:12 UTC (rev 7193)
@@ -47,6 +47,8 @@
#define MSG_DONTWAIT 0x1000000
#endif
+#define SPAWN_MODE _P_NOWAIT
+
/* Cygwin does not handle IPv6. */
#ifndef AF_INET6
Modified: mlton/trunk/runtime/platform.h
===================================================================
--- mlton/trunk/runtime/platform.h 2009-06-22 19:03:34 UTC (rev 7192)
+++ mlton/trunk/runtime/platform.h 2009-06-23 14:34:12 UTC (rev 7193)
@@ -62,11 +62,7 @@
#define EXECVE execve
#endif
-#ifndef SPAWN_MODE
-#define SPAWN_MODE 0
-#endif
-
/* Because HAS_FPCLASSIFY is unset, the runtime will provide it's own
* implementation. It doesn't matter much what the values are, because
* the runtime doesn't depend on the bit representation; it just returns
More information about the MLton-commit
mailing list