You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
tmux -D keeps zombies around with --enable-utempter #4559
If tmux is built with --enable-utempter, the following commands somewhat reliably lead to the shell process becoming a zombie that's not reaped until the main tmux -D process terminates.
Steps to reproduce (see note below)
Compile tmux with ./configure --enable-utempter && make.
Run ./tmux -Ltest kill-server && ./tmux -Ltest -f/dev/null -D.
In another terminal, run ./tmux -Ltest -f/dev/null to start a new session with the default shell. This has been tested both with bash and fish.
Wait a few seconds and exit the shell.
The shell started by the client process will be a zombie process of the tmux -D command.
Note: Interestingly enough, I am not able to reproduce this problem when enabling verbose logging (-vv). This issue might be because of a race condition. If that's indeed the case, I imagine different hardware/operating system configurations might get different results when trying to reproduce this issue.
Related issues
This bug might be related to #311. However, this problem only occurs when using -D. Moreover, #311 seems to be fixed, so I opened a new issue instead.
Required information
Please provide the following information:
tmux version (tmux -V): tmux next-3.6 (latest master/865117a0)
Platform (uname -sp): Linux unknown (Debian 12 running in a container; docker.io/debian:stable)
$TERM
inside: xterm
and outside of tmux (echo $TERM): tmux-256color
Logs from tmux (tmux kill-server; tmux -vv new): As described above, I can't reproduce the issue when running the same commands with -vv.
Thank you for creating tmux! It's an essential part of my terminal workflows.
Activity
nicm commentedon Jul 19, 2025
Does it make any difference if you do this as well?
archer-321 commentedon Jul 20, 2025
Thanks for the reply!
Adding the lines to both files indeed fixes the issue.
I also tried creating multiple panes and closing them individually; as long as the server was using the patch, no zombie processes were left behind.
nicm commentedon Jul 20, 2025
Good stuff, applied now. Thanks!
github-actions commentedon Aug 20, 2025
This issue has been automatically locked since there has not been any recent activity after it was closed.