diff options
Diffstat (limited to 'Utility')
-rw-r--r-- | Utility/Process.hs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Utility/Process.hs b/Utility/Process.hs index 1c99b83ca..1e93569be 100644 --- a/Utility/Process.hs +++ b/Utility/Process.hs @@ -17,6 +17,7 @@ module Utility.Process ( writeReadProcessEnv, forceSuccessProcess, checkSuccessProcess, + ignoreFailureProcess, createProcessSuccess, createProcessChecked, createBackgroundProcess, @@ -24,6 +25,9 @@ module Utility.Process ( withBothHandles, createProcess, runInteractiveProcess, + stdinHandle, + stdoutHandle, + stderrHandle, ) where import qualified System.Process @@ -112,6 +116,9 @@ checkSuccessProcess pid = do code <- waitForProcess pid return $ code == ExitSuccess +ignoreFailureProcess :: ProcessHandle -> IO () +ignoreFailureProcess = void . waitForProcess + {- Runs createProcess, then an action on its handles, and then - forceSuccessProcess. -} createProcessSuccess :: CreateProcessRunner |