#3369: Deadlock sending stdin to a process which does not read it
-------------------------------+--------------------------------------------
Reporter: simonmic | Owner:
Type: bug | Status: closed
Priority: normal | Milestone:
Component: libraries/process | Version: 6.10.3
Severity: normal | Resolution: invalid
Keywords: | Testcase:
Os: MacOS X | Architecture: Unknown/Multiple
-------------------------------+--------------------------------------------
Changes (by simonmic):
* status: new => closed
* resolution: => invalid
Comment:
This was hard to reproduce today, and I'm no longer sure its mac-specific.
I learned some more about lazy I/O and added the writeFile line, trying to
force full evaluation:
{{{
(ih,oh,eh,ph) ← runInteractiveCommand cmd
forkIO $ hPutStr ih i'
out ← hGetContents oh
err ← hGetContents eh
writeFile "/dev/null" $ printf "%d%d " (length o_actual) (length
e_actual)
exit ← waitForProcess ph
}}}
This prevented the hang. I guess there's no ghc issue here.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3369#comment:2>
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