From 7dcb7fa631f6eb14c5dc0a04a1040b69d9046e40 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Sat, 16 May 2026 01:53:52 +0000 Subject: [PATCH] fix(cron): use POSIX ERE boundary in pgrep cleanup pattern Co-authored-by: Yassin Kortam --- tests/claude_code/cron_vm/run_daily.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/claude_code/cron_vm/run_daily.sh b/tests/claude_code/cron_vm/run_daily.sh index 59543e68a63..c64872867a5 100755 --- a/tests/claude_code/cron_vm/run_daily.sh +++ b/tests/claude_code/cron_vm/run_daily.sh @@ -73,7 +73,7 @@ cleanup() { fi # Belt-and-braces: any python or uv talking to ${PROXY_PORT} that # survived the SIGTERM gets SIGKILL'd by name. - pgrep -f "litellm.*--port[ =]?${PROXY_PORT}\b" 2>/dev/null \ + pgrep -f "litellm.*--port[ =]?${PROXY_PORT}([^0-9]|$)" 2>/dev/null \ | xargs -r kill -KILL 2>/dev/null || true pgrep -f "${WORKTREE}/.uv-bin/uv.*run litellm" 2>/dev/null \ | xargs -r kill -KILL 2>/dev/null || true