Skip to content

Commit c8105aa

Browse files
authored
Fix deadlock in GetDotNetSdkVersion (#2622)
* Fix deadlock in GetDotNetSdkVersion * Remove newline at the end of file
1 parent a739e2c commit c8105aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BenchmarkDotNet/Toolchains/DotNetCli/DotNetCliCommandExecutor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public static DotNetCliCommandResult Execute(DotNetCliCommand parameters)
5656

5757
internal static string? GetDotNetSdkVersion()
5858
{
59-
using (var process = new Process { StartInfo = BuildStartInfo(customDotNetCliPath: null, workingDirectory: string.Empty, arguments: "--version") })
59+
using (var process = new Process { StartInfo = BuildStartInfo(customDotNetCliPath: null, workingDirectory: string.Empty, arguments: "--version", redirectStandardError: false) })
6060
using (new ConsoleExitHandler(process, NullLogger.Instance))
6161
{
6262
try

0 commit comments

Comments
 (0)