Skip to content

Commit d63ff37

Browse files
committed
try
1 parent 7b67fca commit d63ff37

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/BenchmarksApps/TLS/Kestrel/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88

99
Console.WriteLine("Starting application...");
1010

11-
ProcessStartInfo startInfo = new ProcessStartInfo()
11+
ProcessStartInfo processInfo = new ProcessStartInfo()
1212
{
1313
FileName = "/bin/bash",
1414
Arguments = "openssl version",
1515
RedirectStandardOutput = true,
1616
RedirectStandardError = true,
1717
};
18-
Process process = new Process() { StartInfo = startInfo, };
18+
using Process process = Process.Start(processInfo)!;
1919
string output = process.StandardOutput.ReadToEnd();
2020
process.WaitForExit();
2121
Console.WriteLine(output);

0 commit comments

Comments
 (0)