summaryrefslogtreecommitdiff
path: root/src/Utility/ConcurrentOutput.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Utility/ConcurrentOutput.hs')
-rw-r--r--src/Utility/ConcurrentOutput.hs8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/Utility/ConcurrentOutput.hs b/src/Utility/ConcurrentOutput.hs
index 5584d7a9..3ced5083 100644
--- a/src/Utility/ConcurrentOutput.hs
+++ b/src/Utility/ConcurrentOutput.hs
@@ -85,13 +85,7 @@ takeOutputLock' block = go =<< withLock tryTakeTMVar
( havelock
, if block
then do
- hPutStrLn stderr "WAIT PROCESS"
- hFlush stderr
- (void $ P.waitForProcess h)
- `catchIO`
- (\e -> hPutStrLn stderr (show ("WAIT PROCESS failed", e)))
- hPutStrLn stderr "WAIT PROCESS done"
- hFlush stderr
+ void $ tryIO $ P.waitForProcess h
havelock
else do
withLock (`putTMVar` orig)