From 22b79862052c7d761ba537c8f84895f32cc85c8c Mon Sep 17 00:00:00 2001 From: MichaelPesce Date: Thu, 1 Aug 2024 11:25:52 -0500 Subject: [PATCH] only check for idle, not system --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2a1e6e3e..6874819c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -101,7 +101,7 @@ jobs: $process = Get-Process -Id $processId -ErrorAction SilentlyContinue if ($process) { Write-Host "Found valid process $process" - if ($process.Name -notcontains "Idle" -and $process.Name -notcontains "System") { + if ($process.Name -notcontains "Idle") { try { Write-Host "Attempting to kill ID $processId with name $process.Name." Stop-Process -Id $process.Id -Force @@ -110,7 +110,7 @@ jobs: Write-Host "Failed to kill process with ID $processId - $_" } } else { - Write-Host "The process using port $port is a system process and cannot be terminated." + Write-Host "The process using port $port is the idle process and cannot be terminated." } } else { Write-Host "No process found using port $port."