-
-
Notifications
You must be signed in to change notification settings - Fork 685
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Zombie child processes are not reaped on pane/tab exit #518
Comments
Thanks for opening the issue. I personally only manage to reproduce this when the pane has opened child processes of its own (eg. when I start My guess is that this happens here: https://github.com/zellij-org/zellij/blob/main/zellij-server/src/pty.rs#L285 I'm mentioning this because I'm now placing a |
@myrrlyn - I think this is solved. At least I can no longer reproduce it. It should either be solved by EDIT: |
I'm seeing this behavior on an M1 MacOS using zellij 0.26.1. Found out about it through vim open buffers on reopening a previously closed tab that had the same file open. Tabs and Panes exhibit the same issue. Steps:
|
Observed: On macOS 11 and ArchLinux, exiting panes or tabs within a
zellij
session produces zombie child processes that the parent does not reap until the entire session exits. Zombies do not persist after the session exits. I have produced this on v0.8 and v0.11.Expected: The process managing the Zellij session should reap child processes when their pane or tab is closed.
I haven't seen any adverse behavior with this other than having the process entry linger. This is extremely low priority; modern Linux has no PID limit and macOS has 100,000, so even under heavy load a few zombie processes doesn't have a negative system effect. The only real cost (at least to me) is that active tab creation/destruction in a long session leads to a lot of visual clutter in
htop
.The text was updated successfully, but these errors were encountered: