Skip to content

Conversation

@brdeyo
Copy link
Contributor

@brdeyo brdeyo commented Dec 13, 2025

There is a race condition-style flaw in the .NET implementation of the WaitForExit() method. The race condition allows for the process to exit after completion but for a period of time to pass before the kernel completes all finalization and cleanup steps (e.g. setting an exit code). To help prevent downstream issues that happen when attempting to access properties on the process during this race condition period of time.

Example of error hit during race condition period of time:
"Process must exit before requested information can be determined."

…ization that causes error when attempting to access exit code.
@brdeyo brdeyo force-pushed the brdeyo/process-race-condition-fix branch from d18b614 to f34413a Compare December 13, 2025 17:23
@brdeyo brdeyo merged commit f7563a1 into main Dec 13, 2025
5 checks passed
@brdeyo brdeyo deleted the brdeyo/process-race-condition-fix branch December 13, 2025 17:33
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