Skip to content

Commit

Permalink
Add redundant waitForProcess to make duplication more obvious
Browse files Browse the repository at this point in the history
It can never run because of the throwIO before it
  • Loading branch information
tomjaguarpaw committed May 23, 2023
1 parent 971f04a commit 2404906
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/System/Process/Typed.hs
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ startProcess pConfig'@ProcessConfig {..} = liftIO $ do
-- runtime!
| isPermissionError e && not multiThreadedRuntime && isWindows ->
P.waitForProcess pHandle
| otherwise -> throwIO e
| otherwise -> throwIO e >> P.waitForProcess pHandle
Right () -> P.waitForProcess pHandle
success <- atomically $ tryPutTMVar pExitCode ec
evaluate $ assert success ()
Expand Down

0 comments on commit 2404906

Please sign in to comment.