Skip to content

Commit 9991cd8

Browse files
committed
Fix possible deadlock in UnixCertificateManager
1 parent 287cf8d commit 9991cd8

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/Shared/CertificateGeneration/UnixCertificateManager.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -714,9 +714,7 @@ private static bool IsCertificateInNssDb(string nickname, NssDb nssDb)
714714

715715
try
716716
{
717-
using var process = Process.Start(startInfo)!;
718-
process.WaitForExit();
719-
return process.ExitCode == 0;
717+
return Process.RunAndCaptureText(startInfo).ExitStatus.ExitCode == 0;
720718
}
721719
catch (Exception ex)
722720
{

0 commit comments

Comments
 (0)