Fix Windows lifecycle validation

This commit is contained in:
Drew Ritter
2026-06-10 20:09:55 -07:00
committed by Drew Ritter
parent 1c21a91e01
commit 5415cb8ccf
2 changed files with 60 additions and 7 deletions

View File

@@ -40,7 +40,7 @@ command_has_server_id() {
local expected_arg="--brainstorm-server-id=$expected"
if [[ -r "/proc/$pid/cmdline" ]]; then
local arg
while IFS= read -r -d '' arg; do
while IFS= read -r -d '' arg || [[ -n "$arg" ]]; do
[[ "$arg" == "$expected_arg" ]] && return 0
done < "/proc/$pid/cmdline"
return 1