fix reversion
Accidentially lost the handle setup in processTranscript.
This commit is contained in:
parent
a3d1f967a8
commit
b329cf32ec
1 changed files with 6 additions and 1 deletions
|
@ -50,7 +50,12 @@ processTranscript'' cp input = do
|
||||||
System.Posix.IO.setFdOption writef System.Posix.IO.CloseOnExec True
|
System.Posix.IO.setFdOption writef System.Posix.IO.CloseOnExec True
|
||||||
readh <- System.Posix.IO.fdToHandle readf
|
readh <- System.Posix.IO.fdToHandle readf
|
||||||
writeh <- System.Posix.IO.fdToHandle writef
|
writeh <- System.Posix.IO.fdToHandle writef
|
||||||
withCreateProcess cp $ \hin hout herr pid -> do
|
let cp' = cp
|
||||||
|
{ std_in = if isJust input then CreatePipe else Inherit
|
||||||
|
, std_out = UseHandle writeh
|
||||||
|
, std_err = UseHandle writeh
|
||||||
|
}
|
||||||
|
withCreateProcess cp' $ \hin hout herr pid -> do
|
||||||
hClose writeh
|
hClose writeh
|
||||||
|
|
||||||
get <- asyncreader readh
|
get <- asyncreader readh
|
||||||
|
|
Loading…
Add table
Reference in a new issue