If I run
tmux kill-server ; tmux new -d -s test
Sometimes it works, and sometimes I get lost server
or no server running on /tmp/tmux-1000/default
.
If I do
tmux kill-server ; sleep 0.1; tmux new -d -s test
Then it always works. But I suspect it might fail on a heavily loaded system.
What's happening during that sleep 0.1
and is there a way to explicitely wait for it?