[MLton] Finished (?) MLton.Child
Wesley W. Terpstra
terpstra@gkec.tu-darmstadt.de
Thu, 2 Dec 2004 05:45:39 +0100
--G4iJoqBmSsgzjUCe
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
I popped in a new RAM chip and tada: mlton compiles. :)
I think the newer mlton compilers are the best RAM testers on the market.
No other tool found anything wrong with my RAM, but 3/4 builds failed before
and 0/4 fail now. Clearly, the RAM was to blame.
Here's a patch which makes CreateProcess work on cygwin without using
fork(). After having read the cygwin source for fork and spawn, I am very
pleased with how little crap is involved in this implementation. =)
I had to write my own version of cwait() as the comment explains.
I also pulled everything out of create.c. The only method which remains
the same between mingw and cygwin is terminate, so it was rather silly.
Paths are translated from cygwin style to windows before CreateProcess.
At any rate, afaik this means MLton.Process.create works on all supported
platforms. Therefore Unix.create works too. =) You might want to consider
deprecating spawn in favour of the SML Basis provided Unix.*.
Btw, why is mlton not built for !i386 in debian? The C target would still
work wouldn't it?
Also, at some point when you applied my patch to fix cygwin->mingw
cross-compilation, part went missing and therefore cvs/HEAD doesn't work.
I've attached a quick fix for that too. (You included -b twice)
My next MLton related project will be IPv6 or SWIG. Undecided atm.
--
Wesley W. Terpstra
--G4iJoqBmSsgzjUCe
Content-Type: application/octet-stream
Content-Disposition: attachment; filename="cross-misapplied.patch.gz"
Content-Transfer-Encoding: base64
H4sICEJerkECA2Nyb3NzLW1pc2FwcGxpZWQucGF0Y2gApY69DoIwFIVn+xQnzPwEDaZpxIXJ
VZ4A4RablDZpKzr48IKJEF39hvt3TnLuyXT0EBgaZVJ5M6z8H3auakilSSBrR++sDdmggzXf
dUrMPrHxyBwFp2hUpoebmlfWIE95zjolJRI3z+ubvNjFvNh3vNiyAzYzaBtPCI3rKcDK5TxR
Oes9PMojouQSQYhpmctdhfZKfvU+UZOWs/FHw5ux0YuAkr0AzERKej0BAAA=
--G4iJoqBmSsgzjUCe
Content-Type: application/octet-stream
Content-Disposition: attachment; filename="cygwin-createprocess.patch.gz"
Content-Transfer-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