weykon
349cd9b416
fix: prevent PTY leak by detecting orphaned worker processes
...
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>
2026-01-26 20:41:27 +08:00
Roman Perepelitsa
c64a133616
Merge commit ' 140a6ade4e'
2024-10-03 11:16:46 +02:00
Roman Perepelitsa
3fe8706d24
Merge commit ' 45627c528b'
2024-03-18 16:53:55 +01:00
Roman Perepelitsa
d70eedb345
Merge commit ' dec881651c'
2023-12-10 12:15:00 +01:00
Roman Perepelitsa
f04ce05d92
Merge commit ' d8041e4700'
2023-08-15 10:30:02 +02:00
Roman Perepelitsa
69d726d9fb
Merge commit ' 9401ed17c0'
2023-08-10 11:48:54 +02:00
Roman Perepelitsa
2d9c1f271b
Merge commit ' 22cb2f79dd'
2023-08-10 09:32:33 +02:00
Roman Perepelitsa
cd47894197
Merge commit ' ed1b02efd5'
2022-10-09 11:58:40 +02:00
Roman Perepelitsa
843dcf0167
survive broken FPATH ( #10
2022-10-02 18:34:25 +02:00
Roman Perepelitsa
123136c0e7
Merge commit ' c0a028351f'
2022-02-14 19:26:12 +01:00
Roman Perepelitsa
a83e53005f
Merge commit ' 4b21cd06ff'
2022-02-07 08:38:49 +01:00
Roman Perepelitsa
4f143b7b97
Merge commit ' bee6e09262'
2022-01-26 16:04:09 +01:00
Roman Perepelitsa
cead0349c5
Merge commit ' 5014de0541'
2022-01-26 14:45:50 +01:00
Roman Perepelitsa
2079d8ecbe
Merge commit ' c8160f2954'
2022-01-04 12:14:19 +01:00
Roman Perepelitsa
3380f7503e
Merge commit ' e181bc0653'
2021-12-05 09:28:30 +01:00
Roman Perepelitsa
d281e595b3
Merge commit ' e2447322e0'
2021-11-02 07:23:57 +01:00
Roman Perepelitsa
ed0bd29416
Merge commit ' 1af6385436'
2021-10-20 14:05:34 +02:00
Roman Perepelitsa
d2f78d4b29
Merge commit ' 20eb8c64bf'
2021-09-12 10:40:43 +02:00
Roman Perepelitsa
e362b69735
Merge commit ' 10ad57cc6b'
2021-08-23 10:30:28 +02:00
Roman Perepelitsa
ec44300155
Merge commit ' 80ec734a95'
2021-08-18 17:05:04 +02:00
Roman Perepelitsa
8f798f986a
Merge commit ' 799c22f63b'
2021-07-25 09:31:56 +02:00
Roman Perepelitsa
a38a1f5be1
Merge commit ' 70ae5810d8'
2021-07-22 11:19:22 +02:00
Roman Perepelitsa
05d71fe82c
Merge commit ' 077abf95e0'
2021-07-02 14:37:14 +02:00
Roman Perepelitsa
7f4a2741b5
Merge commit ' 63a009669a'
2021-07-02 14:28:20 +02:00
Roman Perepelitsa
f4668bc194
Merge commit ' 7759063b74'
2021-07-02 11:02:41 +02:00
Roman Perepelitsa
73eff3a033
Merge commit ' f1ff680487'
2021-06-27 18:48:35 +02:00
Roman Perepelitsa
2e0989c018
Merge commit ' 038de6f78b'
2021-06-11 09:23:28 +02:00
Roman Perepelitsa
f5d61840ae
Merge commit ' 96f3ca1733'
2021-06-10 10:15:02 +02:00
Roman Perepelitsa
f217e4a39a
Merge commit ' ba83466e1d'
2021-05-30 10:35:40 +02:00
Roman Perepelitsa
9c3ecab81e
Merge commit ' 9609a835ca'
2020-12-21 16:19:22 +01:00
Samuel Gräfenstein
38a5492b5f
Remove trailing whitespace ( #1173 )
2020-12-20 16:28:52 +01:00
Roman Perepelitsa
bc3158cba5
Merge commit ' 29759b7b0a'
2020-11-26 11:16:16 +01:00
Roman Perepelitsa
9d6444a557
Merge commit ' a7f417245d'
2020-11-26 08:53:49 +01:00
Roman Perepelitsa
381bd09e67
Merge commit ' 622069e60f'
2020-11-26 07:59:45 +01:00
Roman Perepelitsa
7e363af9ed
Merge commit ' fb89173a42'
2020-11-25 11:14:38 +01:00
Roman Perepelitsa
6b254621e7
Merge commit ' 98b96e06cc'
2020-11-24 12:46:19 +01:00
Roman Perepelitsa
21df7db2b2
Merge commit ' 39cf063480'
2020-11-24 12:32:19 +01:00
Roman Perepelitsa
04f75a10a5
Merge commit ' 28301be914'
2020-11-17 12:42:57 +01:00
Roman Perepelitsa
ece7213a3d
Merge commit ' 790f4719ab'
2020-11-17 10:02:15 +01:00
Roman Perepelitsa
bf830b5bf1
Merge commit ' b7167a64c6'
2020-11-17 08:32:05 +01:00
Roman Perepelitsa
68c89ec2bc
Merge commit ' d86bbe75de'
2020-10-22 14:54:18 +02:00
Roman Perepelitsa
3aec0c6b36
make configuration options work when using Turkish locale ( #1036 )
2020-10-05 14:46:48 +02:00
Roman Perepelitsa
afb854d279
Merge commit ' 760f7cb7a5'
2020-09-11 09:16:24 +02:00
Roman Perepelitsa
ebfaae2ab6
Merge commit ' f63d6a31c1'
2020-08-15 08:59:44 +02:00
Roman Perepelitsa
422b7a94b9
Merge commit ' cb59280c40'
2020-07-29 23:05:36 +02:00
Roman Perepelitsa
88d5fb6145
Merge commit ' 15818346bf'
2020-07-20 15:06:02 +02:00
Roman Perepelitsa
24278ccd39
Merge commit ' bf2aa14bec'
2020-07-19 11:09:40 +02:00
Roman Perepelitsa
9486385824
Merge commit ' ff8654ccd5'
2020-07-04 07:00:17 +02:00
Roman Perepelitsa
1be10ebcf7
Merge commit ' eadfdba707'
2020-06-22 19:18:34 +02:00
Roman Perepelitsa
5e5d3f5aff
Merge commit ' 0717e57ff4'
2020-06-14 10:29:29 +02:00