lib/spielbash/model/session.rb
# This will wait for tmux session pid to not have any child processes
This will wait for tmux session pid to not have any child processes
This will wait for tmux session pid to not have any child processes
def wait
      execute_tmux_with('list-panes -F #{pane_pid}' + " -t #{name}", true)
      pid = last_stdout.strip
      return if pid.empty?
      loop do
        exec_wait_check_cmd(pid)
        children = last_stdout
        break if children.empty?
      end
    end
def wait execute_tmux_with ( 'list-panes -F #{pane_pid}' + " -t #{name}" , true ) pid = last_stdout . strip return if pid . empty? loop do exec_wait_check_cmd ( pid ) children = last_stdout break if children . empty? end end
This will wait for tmux session pid to not have any child processes
This will wait for tmux session pid to not have any child processes