#2650: Child processes always unwantedly inherit Handles on Windows
----------------------------------+-----------------------------------------
    Reporter:  Deewiant           |        Owner:  simonmar
        Type:  bug                |       Status:  new     
    Priority:  high               |    Milestone:  6.12.1  
   Component:  libraries (other)  |      Version:  6.9     
    Severity:  major              |   Resolution:          
    Keywords:                     |   Difficulty:  Unknown 
    Testcase:                     |           Os:  Windows 
Architecture:  Unknown/Multiple   |  
----------------------------------+-----------------------------------------
Comment (by duncan):

 So according to the
 [http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6428742 JVM bug
 report] we can make `CreateProcess.close_fds` work except when also trying
 to redirect stdin/out. Currently we do not attempt to make it work at all.
 And on Vista we can make it work even when redirect stdin/out.

 So it seems like we both need to make new handles (eg from opening files
 and sockets) non-inheritable and implement the above tricks.

 This all looks quite doable but will need some careful testing.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2650#comment:7>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to