File tree 1 file changed +2
-7
lines changed
1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -43,18 +43,13 @@ runProcess binPath args stdin stdout = do
43
43
CPT. withProcessWait (
44
44
-- No need to keep these open
45
45
CPT. setCloseFds True
46
- -- We need the Handle for stdin because we need to hClose it!
47
- -- Therefore, we cannot use `CPT.setStdin CTP.createSink`
48
- $ CPT. setStdin CPT. createPipe
46
+ $ CPT. setStdin CPT. createSinkClose
49
47
$ CPT. setStderr CPT. byteStringOutput
50
48
$ CPT. setStdout CPT. createSource
51
49
$ CPT. proc binPath args) $ \ p ->
52
50
U. runConcurrently $ (,,)
53
51
<$> U. Concurrently (CPT. waitExitCode p)
54
- <* U. Concurrently (do
55
- let hin = CPT. getStdin p
56
- C. runConduit (stdin .| CC. sinkHandle hin)
57
- U. hClose hin)
52
+ <* U. Concurrently (C. runConduit (stdin .| CPT. getStdin p))
58
53
<*> U. Concurrently (C. runConduit (CPT. getStdout p .| stdout'))
59
54
<*> U. Concurrently (liftIO $ STM. atomically (CPT. getStderr p))
60
55
let err' = BL8. unpack err
You can’t perform that action at this time.
0 commit comments