Skip to content
Snippets Groups Projects
Commit 8b7534b3 authored by Thomas Miedema's avatar Thomas Miedema
Browse files

Update process submodule

Summary:
Rename `SysTools.readCreateProcess`.

Functions `readCreateProcess` and `readCreateProcessWithExitCode` were added
to `System.Process`, the former of which conflicts with
`SysTools.readCreateProcess`.

Reviewed by: austin

Differential Revision: https://phabricator.haskell.org/D713
parent e76f8664
No related branches found
No related tags found
No related merge requests found
...@@ -469,13 +469,14 @@ askCc dflags args = do ...@@ -469,13 +469,14 @@ askCc dflags args = do
args2 = args0 ++ args1 ++ args args2 = args0 ++ args1 ++ args
mb_env <- getGccEnv args2 mb_env <- getGccEnv args2
runSomethingWith dflags "gcc" p args2 $ \real_args -> runSomethingWith dflags "gcc" p args2 $ \real_args ->
readCreateProcess (proc p real_args){ env = mb_env } readCreateProcessWithExitCode' (proc p real_args){ env = mb_env }
-- Version of System.Process.readProcessWithExitCode that takes an environment -- Similar to System.Process.readCreateProcessWithExitCode, but stderr is
readCreateProcess -- inherited from the parent process, and output to stderr is not captured.
readCreateProcessWithExitCode'
:: CreateProcess :: CreateProcess
-> IO (ExitCode, String) -- ^ stdout -> IO (ExitCode, String) -- ^ stdout
readCreateProcess proc = do readCreateProcessWithExitCode' proc = do
(_, Just outh, _, pid) <- (_, Just outh, _, pid) <-
createProcess proc{ std_out = CreatePipe } createProcess proc{ std_out = CreatePipe }
......
Subproject commit 160bdd16722d85c2644bd2353121d8eb5e1597e4 Subproject commit ae10a33cd16d9ac9238a193e5355c5c2e05ef0a2
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment