Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[xbuild] Fix a race condition in ToolTask.
* class/Microsoft.Build.Utilities/Microsoft.Build.Utilities/ToolTask.cs (ExecuteTool): When StartProcess returns, the process has already .Start()'ed If we subscribe to the output events after that, then for processes that finish executing before we can subscribe, we won't get the output/error events at all! So, pass the handlers to StartProcess itself, so that they get added before the process is started.
- Loading branch information
Showing
1 changed file
with
13 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters