[GHC] #2650: Child processes always unwantedly inherit Handles
on Windows
GHC
trac at galois.com
Fri Feb 13 18:01:31 EST 2009
#2650: Child processes always unwantedly inherit Handles on Windows
----------------------------------+-----------------------------------------
Reporter: Deewiant | Owner: simonmar
Type: bug | Status: new
Priority: normal | Milestone: 6.10.2
Component: libraries (other) | Version: 6.9
Severity: major | Resolution:
Keywords: | Difficulty: Unknown
Testcase: | Os: Windows
Architecture: Unknown/Multiple |
----------------------------------+-----------------------------------------
Comment (by Deewiant):
I just realized an error in the patch against `process`: a critical
section object is now initialized and deleted each time
`runInteractiveProcess` is called. This makes it completely useless since
each thread gets its own critical section!
It should be made into a global, initializing it only once. Deleting it is
probably unnecessary since the OS will free it when the process exits, and
you can't be sure it won't be reused until that happens anyway. I defer
doing this to someone who knows more about how that single initialization
can be performed.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2650#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list