
#14143: forkProcess leaks file descriptors -------------------------------------+------------------------------------- Reporter: danharaj | Owner: (none) Type: feature request | Status: new Priority: normal | Milestone: Component: libraries/base | Version: 8.2.1 Resolution: | Keywords: Operating System: POSIX | Architecture: | Unknown/Multiple Type of failure: Other | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by bgamari): I agree with Sven; `forkProcess` is (sadly) essentially impossible to support robustly. I have tried quite hard to use it in my own projects in the past but ultimately gave up due to similar issues (or rather, even worse: a program with multiple Haskell threads writing to `stdout` may deadlock after fork as a thread has taken the `Handle`'s `MVar` at the time that `forkProcess` killed the holding thread). tl;dr: `forkProcess` is a can of worms which introduces a number of essentially unsolvable problems. Avoid it at all costs. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14143#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler