#3369: Deadlock sending stdin to a process which does not read it
-------------------------------+--------------------------------------------
Reporter: simonmic | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: libraries/process | Version: 6.10.3
Severity: normal | Resolution:
Keywords: | Testcase:
Os: MacOS X | Architecture: Unknown/Multiple
-------------------------------+--------------------------------------------
Comment (by simonmic):
{{{
(ih,oh,eh,ph) ← runInteractiveCommand cmd
forkIO $ hPutStr ih i' -- separate thread in case cmd does not read
stdin
out ← hGetContents oh
err ← hGetContents eh
exit ← waitForProcess ph
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3369#comment:1>
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