Commit 1153a518 authored by Ross Paterson's avatar Ross Paterson
Browse files

flush stdout before running subprograms

This is needed to separate Cabal and subprogram output if stdout is
buffered (e.g. a file), especially if stdout and stderr are the same.
parent 9f04071a
......@@ -237,6 +237,7 @@ printRawCommandAndArgs verbosity path args
rawSystemExit :: Verbosity -> FilePath -> [String] -> IO ()
rawSystemExit verbosity path args = do
printRawCommandAndArgs verbosity path args
hFlush stdout
maybeExit $ rawSystem path args
-- Exit with the same exitcode if the subcommand fails
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment