Skip to content

Commit

Permalink
Fix windows console runner update crash (#1670)
Browse files Browse the repository at this point in the history
* Kill node process to recover handle

So we can print to the console in Runner.Listener once again

* Revert testing changes

Co-authored-by: Ferenc Hammerl <hammerl.ferenc@gmail.com>
  • Loading branch information
fhammerl and Ferenc Hammerl committed Feb 8, 2022
1 parent 2946801 commit 9240a1c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Runner.Listener/SelfUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1060,6 +1060,8 @@ private async Task<string> HashFiles(string fileFolder, CancellationToken token)
arguments: $"\"{hashFilesScript.Replace("\"", "\\\"")}\"",
environment: env,
requireExitCodeZero: false,
outputEncoding: null,
killProcessOnCancel: true,
cancellationToken: token);

if (exitCode != 0)
Expand Down

0 comments on commit 9240a1c

Please sign in to comment.