<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><br><pre>&gt;&nbsp;&nbsp;&nbsp;&nbsp;(hin,&nbsp;hout,&nbsp;_,&nbsp;p)&nbsp;&lt;-&nbsp;runInteractiveProcess&nbsp;"copierer"&nbsp;[]&nbsp;Nothing

&gt;./twowaysubprocesscomm&nbsp;
&gt;twowaysubprocesscomm:&nbsp;fd:7:&nbsp;hGetLine:&nbsp;end&nbsp;of&nbsp;file
&gt;twowaysubprocesscomm:&nbsp;fd:6:&nbsp;hPutChar:&nbsp;resource&nbsp;vanished&nbsp;(Broken&nbsp;pipe)
<br></pre><pre>Because you didn't give the right path to copierer.</pre><pre>And you should hSetBuffering in <span class="Apple-style-span" style="line-height: 25px; ">copierer.hs.</span></pre><pre><span class="Apple-style-span" style="line-height: 25px; ">Because the handles returned by </span>runInteractiveProcess are actually pipes that connect to <span class="Apple-style-span" style="line-height: 25px; ">copierer's stdin and stdout.</span></pre></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>