-
Notifications
You must be signed in to change notification settings - Fork 475
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
Fix deadlock in ProcessUtil #1457
Conversation
Unit test? |
Honestly I am not sure what kind of unit test would make sense for this change. Any suggestions? |
Is it possible to re-create the deadlock in a test? If so, have a test of that scenario that now passes. |
Not without private reflection into the internals of |
So you're saying there's a chance... ok, nvm |
Yes 😆 |
Since here we only care about startup activities to be completed before anything else happens, I can think of a better fix, using manual reset event. Stay tuned... |
Is the problem in #1420 that What is the purpose of checking |
This allows multiple event handlers to run concurrently
@JamesNK I think my second attempt is both more robust and easier to understand from the intention perspective. LMK what you think! |
I like it more. It needs some comments explaining why it works the way it does. |
Thanks @JamesNK! |
Fixes #1420
Microsoft Reviewers: Open in CodeFlow