Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix: e2e cleanup step kill PID 0 → SIGTERM process group (exit 143)

Louis Beaumont01956b563f15
diff --git a/.github/workflows/e2e-macos.yml b/.github/workflows/e2e-macos.yml
index 9b0ad3334..adc2fc887 100644
--- a/.github/workflows/e2e-macos.yml
+++ b/.github/workflows/e2e-macos.yml
@@ -557,8 +557,8 @@ jobs:
kill -INT $RECORDING_PID 2>/dev/null || true
sleep 3 # Give it time to finalize
fi
- # Kill the CLI server
- if [ -n "$SERVER_PID" ]; then kill $SERVER_PID 2>/dev/null || true; fi
+ # Kill the CLI server (skip if PID is 0 — kill 0 sends SIGTERM to the process group)
+ if [ -n "$SERVER_PID" ] && [ "$SERVER_PID" -gt 0 ] 2>/dev/null; then kill $SERVER_PID 2>/dev/null || true; fi
# Kill the app
pkill -f "screenpipe-app" 2>/dev/null || true
pkill -f "screenpipe" 2>/dev/null || true