Skip to content

Fill exit code TMVar in waitForProcess cleanup - #3

Merged
snoyberg merged 2 commits into
fpco:masterfrom
mitchellwrosen:fix-wait-for-process
Aug 7, 2017
Merged

Fill exit code TMVar in waitForProcess cleanup#3
snoyberg merged 2 commits into
fpco:masterfrom
mitchellwrosen:fix-wait-for-process

Conversation

@mitchellwrosen

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread src/System/Process/Typed.hs Outdated
P.terminateProcess pHandle
void $ P.waitForProcess pHandle
ec <- P.waitForProcess pHandle
atomically $ putTMVar pExitCode ec

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two things:

  1. Can you update the changelog/do a patch version bump in the cabal file?
  2. What do you think about using tryPutTMVar instead and using assert to ensure that the result value is True.

@mitchellwrosen

Copy link
Copy Markdown
Contributor Author

Sure thing, done

@snoyberg
snoyberg merged commit 4907c66 into fpco:master Aug 7, 2017
@snoyberg

snoyberg commented Aug 7, 2017

Copy link
Copy Markdown
Contributor

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants