I've now implemented forkProcess# with the changed signature.
It is now no longer a primop but is now foreign-imported by the library (Question: where should it's prototype go now?)
While I was working on it, I discovered that exec() doesn't work well when there are multiple threads (POSIX says it should work just like I would want it to; on Linux, it does something else instead and on Mac OS X it fails with ENOTSUP as soon as there's more than one thread).
Unfortunately, the threaded RTS likes to create many threads... so I had to go back and implement some optimizations to the threaded RTS so that it doesn't create OS threads earlier than necessary now.
I still have to clean up the code a bit; I think I can finish them tomorrow and then send you patches for review or commit it right away.
Cheers,
Wolfgang
_______________________________________________ Cvs-ghc mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/cvs-ghc
