Fix Windows lifecycle validation

This commit is contained in:
Drew Ritter
2026-06-10 20:09:55 -07:00
parent fd9972a4bd
commit 2a8479b21d
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