From a02a837afb91dc025cb3862b90c1d62c1562cb23 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 28 Oct 2015 12:54:28 -0400 Subject: propellor spin --- src/Utility/ConcurrentOutput.hs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') 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 -- cgit v1.2.3