Comment 5 for bug 1666212

Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Is this fix still need as of byobu 5.127? The current code says this:

def attach_session(session):
        update_environment(session)
        backend, session_name = session.split("____", 2)
        cull_zombies(session_name)
        # must use the binary, not the wrapper!
        if backend == "tmux":
                if reuse_sessions:
                        os.execvp("tmux", ["tmux", "attach", "-t", session_name])
                else:
                        os.execvp("tmux", ["tmux", "-2", "new-session", "-t", session_name, "-s", "_%s-%i" % (session_name, os.getpid())])

        else:
                os.execvp("screen", ["screen", "-AOxRR", session_name])