This morning, I got a strange tmux issue:
$ tmux -u attach -d
no sessions
My first idea was that tmux died. But the processes were still running:
1003 6935 0.0 0.0 6700 3620 ? Ss Apr06 53:23 tmux -u
And the sockets were there:
$ ls /tmp/tmux-1003/default -l
srw-rw---- 1 roidelapluie roidelapluie 0 Sep 15 08:54 /tmp/tmux-1003/default
I finally got the solution: sending the signal 10 forced tmux to recreate sockets. After that I could run tmux again without losing my session:
$ killall -10 tmux