diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/Utility/ConcurrentOutput.hs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Utility/ConcurrentOutput.hs b/src/Utility/ConcurrentOutput.hs index 7868ffd4..8497b2dc 100644 --- a/src/Utility/ConcurrentOutput.hs +++ b/src/Utility/ConcurrentOutput.hs @@ -164,13 +164,12 @@ createProcessConcurrent :: P.CreateProcess -> IO (Maybe Handle, Maybe Handle, Ma createProcessConcurrent p | willoutput (P.std_out p) || willoutput (P.std_err p) = ifM tryTakeOutputLock - ( do - hPutStrLn stderr "IS NOT CONCURRENT" - firstprocess + ( firstprocess , do lcker <- outputLockedBy <$> getOutputHandle l <- readMVar lcker hPutStrLn stderr $ show ("IS CONCURRENT", cmd, l) + hFlush stderr concurrentprocess ) | otherwise = P.createProcess p |
