Empty Pipes



Reviving a Seemingly Dead Tmux

  • 09 Nov 2014
  • |
  • tmux
  • linux
  • |

Quite often, when I try to attach to an existing tmux session, the following error pops up:

failed to connect to server: Connection refused

It seems like tmux has disappeared or crashed. Fortunately, to this date that has never been the case. It’s just a simple case of a deleted socket. To cut a long story short, fixing it requires sending tmux a signal to recreate the socket:

killall -s SIGUSR1 tmux

Here’s a reference to a stackexchange question which gives slightly more information.