DarthSim / overmind

Process manager for Procfile-based applications and tmux
MIT License
2.84k stars 79 forks source link

Control Mode dirty exit #69

Closed piotrb closed 4 years ago

piotrb commented 4 years ago

Weird stuff happens when a service dies and everything shuts down while control mode is open .. not sure if this is an iTerm issue or maybe overmind not letting tmux send some final control code that tells iTerm that those panes are gone ..

(I'm using > as my shell prompt indicator for simplicity)

> overmind c -c web
** tmux mode started **

Command Menu
----------------------------
esc    Detach cleanly.
  X    Force-quit tmux mode.
  L    Toggle logging.
  C    Run tmux command.
Detached

It happily sits here while things are active ..

Then when web dies (because of #68) .. this happens ..

Looks like basically at this point overmind returned control back to the shell .. and I guess its iTerm who spams these additional commands in .. but maybe its because overmind detached from echoing the tmux control commands too quickly? just a guess ..

select-pane -t "%5"
display-message -t '@5' -p '#{T:set-titles-string}'
select-window -t @5
select-pane -t "%4"
display-message -t '@4' -p '#{T:set-titles-string}'
select-window -t @4
> select-pane -t "%5"
zsh: command not found: select-pane
> display-message -t '@5' -p '#{T:set-titles-string}'
zsh: command not found: display-message
> select-window -t @5
zsh: command not found: select-window
> select-pane -t "%4"
zsh: command not found: select-pane
> display-message -t '@4' -p '#{T:set-titles-string}'
zsh: command not found: display-message
> select-window -t @4
zsh: command not found: select-window
piotrb commented 4 years ago

Nevermind this is probably an iTerm issue .. seeing this also without overmind :)