[Haskell-cafe] Bug in runInteractiveProcess?

Jules Bean jules at jellybean.co.uk
Tue Oct 16 17:31:53 EDT 2007


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


More information about the Haskell-Cafe mailing list