diff options
Diffstat (limited to 'scripts/windows_smoke_conpty_path.ps1')
| -rw-r--r-- | scripts/windows_smoke_conpty_path.ps1 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/windows_smoke_conpty_path.ps1 b/scripts/windows_smoke_conpty_path.ps1 index bec93b66..484f2a1f 100644 --- a/scripts/windows_smoke_conpty_path.ps1 +++ b/scripts/windows_smoke_conpty_path.ps1 @@ -135,7 +135,7 @@ try { } catch { Write-Host "server stop during cleanup failed: $($_.Exception.Message)" } - Wait-Process -Id $server.Id -Timeout 10 -ErrorAction SilentlyContinue + $null = $server.WaitForExit(10000) $server.Refresh() if (-not $server.HasExited) { & taskkill.exe /PID $server.Id /T /F 2>&1 | Out-Null |
