From 9240a1cf6cd9a3879fc81d052abe07466407f706 Mon Sep 17 00:00:00 2001 From: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com> Date: Tue, 8 Feb 2022 15:27:04 +0100 Subject: [PATCH] Fix windows console runner update crash (#1670) * 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 --- src/Runner.Listener/SelfUpdater.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Runner.Listener/SelfUpdater.cs b/src/Runner.Listener/SelfUpdater.cs index e2f0b2b58..f6556ac2d 100644 --- a/src/Runner.Listener/SelfUpdater.cs +++ b/src/Runner.Listener/SelfUpdater.cs @@ -1060,6 +1060,8 @@ namespace GitHub.Runner.Listener arguments: $"\"{hashFilesScript.Replace("\"", "\\\"")}\"", environment: env, requireExitCodeZero: false, + outputEncoding: null, + killProcessOnCancel: true, cancellationToken: token); if (exitCode != 0)