Description
>> lsof -U | grep '^tmux'
tmux 99036 reportaman 9u unix 0x570ea09cc94aadd1 0t0 /private/tmp/tmux-501/default
tmux 99036 reportaman 10u unix 0x570ea09cc94ae611 0t0 /private/tmp/tmux-501/default
tmux 99036 reportaman 14u unix 0x570ea09cc94acf69 0t0 ->0x570ea09cc94ad8c9
tmux 99851 reportaman 9u unix 0x570ea09cc94aad09 0t0 ->0x570ea09cc94aadd1
I recently added this to my alacritty.yml config file.
shell:
program: /opt/homebrew/bin/zsh
args:
- -l
- -c
- "tmux attach || tmux new-session -s alacritty"
Then when I open alacritty & close it right away, and repeat the process 2-4 times, I see increase in number of entries returned by lsof -U
than I had seen the first time I opened alacritty.
The behavior of >>tmux kill-server
also changes. If I had opened alacritty only once, running >>tmux kill-server
kills server and closes the window. But after two /private/tmp/tmux-501/default
entries appear, running >>tmux kill-server
seems to kill one of the /private/tmp/tmux-501/default
, and tmux session (with same name) continues to exist. All the while, there seems to be only one session visible in session list loaded by pressing <tmux_prefix>s
.
I got this alacritty-tmux recipe from alacritty/alacritty#2956.