Unable to detach zombie session with iterm2 and tmux
Thanks for filing an issue! Please answer the questions below so I can help you.
- iTerm2 version: 3.1
- OS version: 10.12.6
- Attach ~/Library/Preferences/com.googlecode.iterm2.plist here (drag-drop from finder into this window) com.googlecode.iterm2.plist
- Attach a debug log, if possible. Instructions at https://iterm2.com/debuglog debuglog.txt
- Are you reporting a performance issue or a hang? Please attach a sample. Instructions at https://gitlab.com/gnachman/iterm2/wikis/HowToSample No
- Are you reporting a crash? Please attach the crash log. Instructions at https://gitlab.com/gnachman/iterm2/wikis/crash-logs No
Detailed steps to reproduce the problem:
- Use tmux integration with iterm2
- Create a session: tmux -CC
- Leave session open for a long time
- Close session
- List clients - see zombie still open
What happened: After I have had a tmux session open for a while, and detach, it appears to leave some sort of zombie still running. I first noticed this because I wasn't able to resize the window. The only way I've found to actually detach the zombie is to kill the tmux process (losing my session in the process).
For some reason my markdown isn't working to display this as code :(
$ tmux list-clients
: 0 [181x38 ]
$ tmux list-sessions
0: 4 windows (created Thu Oct 12 08:09:51 2017) [181x38] (attached)
$ tmux detach-client -s 0
$ tmux list-sessions
0: 4 windows (created Thu Oct 12 08:09:51 2017) [181x38] (attached)
$ tmux list-clients
: 0 [181x38 ]
What should have happened: The extra client should have been detached from the session.