[Haskell-cafe] Can't establish subprocess communication

mgampkay mgampkay at 163.com
Sun Nov 13 15:57:27 CET 2011

>    (hin, hout, _, p) <- runInteractiveProcess "copierer" [] Nothing

>twowaysubprocesscomm: fd:7: hGetLine: end of file
>twowaysubprocesscomm: fd:6: hPutChar: resource vanished (Broken pipe)

Because you didn't give the right path to copierer.
And you should hSetBuffering in copierer.hs.
Because the handles returned by runInteractiveProcess are actually pipes that connect to copierer's stdin and stdout.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20111113/b4530c74/attachment.htm>

More information about the Haskell-Cafe mailing list