
14 Nov
2011
14 Nov
'11
1:06 p.m.
Hi mgampkay! Thank You, these were the problems with my programs. Greetings, Árpád On Sun, 2011-11-13 at 22:57 +0800, mgampkay wrote:
(hin, hout, _, p) <- runInteractiveProcess "copierer" [] Nothing
./twowaysubprocesscomm 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.