When a tmux session is killed (e.g., via `tmux kill-session`), the zshexit hook may not fire, leaving p10k worker and gitstatus daemon processes orphaned (PPID=1). These orphaned processes hold PTY resources indefinitely, eventually causing PTY exhaustion. This fix adds parent process monitoring: 1. worker.zsh: Check PPID in main loop - exit if parent dies 2. gitstatus.plugin.zsh: Add background monitor that detects PPID change to 1 (init/launchd) and triggers cleanup The fix handles the case where shells are terminated without proper cleanup (SIGKILL, tmux kill-session, etc.). Fixes orphaned processes like: - p10k.worker.*.fifo holders - gitstatus.POWERLEVEL9K.*.fifo holders - gitstatusd-darwin-arm64 daemons Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| configure.zsh | ||
| icons.zsh | ||
| notes.md | ||
| p10k.zsh | ||
| parser.zsh | ||
| wizard.zsh | ||
| worker.zsh | ||