John Goerzen wrote:
Many systems will just try to close *all* FDs except the ones they need
after a fork(). Another approach would be to maintain a global list of
FDs that the Haskell thread is using, and close all of them except the
pipe ends in the child.
Does this make sense to everyone? If so, I'll submit the bug on GHC.
Yes, it does make sense.
On POSIX systems it should suffice to just have haskell set
CLOSE_ON_EXEC on all its fds except std{in,out,err} and special pipe
fds, shouldn't it?
Jules
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe