Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set pre_main status before launching run_helper #3198

Merged
merged 1 commit into from Feb 27, 2018
Merged

Conversation

msimberg
Copy link
Contributor

This fixes a race where runtime_impl::run_helper could set the runtime status to running before runtime_impl::start sets the status to pre_main (the status would then be stuck at pre_main instead of running after actually starting the runtime).

This fixes a race where `runtime_impl::run_helper` could set the runtime status to `running` before `runtime_impl::start` sets the status to `pre_main` (the status would then be stuck at `pre_main` instead of `running` after actually starting the runtime).
Copy link
Member

@hkaiser hkaiser left a comment

Choose a reason for hiding this comment

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

Marvelous catch! Thanks!

@msimberg msimberg merged commit 9f44bb4 into master Feb 27, 2018
@msimberg msimberg deleted the msimberg-patch-1 branch February 27, 2018 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants