picoclaw/pkg/pid
wenjie 7bf6cbe1fa
fix(gateway): harden PID liveness handling and websocket proxy state (#2403)
- treat `EPERM` from `signal(0)` as “process exists” on Unix
- classify malformed PID files as invalid and auto-remove them during read
- keep cached `pidData` only for transient races and downgrade `running` to `stopped` when the tracked process is gone
- refresh PID data on WebSocket proxy requests and reject stale cached gateway state
- add regression tests for invalid PID files, status downgrade, on-demand PID loading, and stale proxy rejection
2026-04-07 16:34:42 +08:00
..
pidfile.go fix(gateway): harden PID liveness handling and websocket proxy state (#2403) 2026-04-07 16:34:42 +08:00
pidfile_test.go fix(gateway): harden PID liveness handling and websocket proxy state (#2403) 2026-04-07 16:34:42 +08:00
pidfile_unix.go fix(gateway): harden PID liveness handling and websocket proxy state (#2403) 2026-04-07 16:34:42 +08:00
pidfile_windows.go fix [BUG] WebUI cannot connect to the gateway started by WebUI (#2267) 2026-04-07 15:46:45 +08:00