Skip to content

Conversation

jyn514
Copy link

@jyn514 jyn514 commented Aug 13, 2024

normally, ps.sh takes the output of tmux list-panes -F "#{pane_pid}" and looks for all the children of that process with a controlling terminal, because that process is usually a shell. but if the process in a pane was spawned with tmux split-pane, it will have no parent process other than the tmux server itself.

support this use case by falling back to the active process if the active process has no children with a controlling terminal.

fixes #517

jyn514 added 2 commits August 13, 2024 19:44
normally, `ps.sh` takes the output of `tmux list-panes -F
"#{pane_pid}"` and looks for all the children of that process with a
controlling terminal, because that process is usually a shell. but
if the process in a pane was spawned with `tmux split-pane`, it will
have no parent process other than the tmux server itself.

support this use case by falling back to the active process if the
active process has no children with a controlling terminal.
…erminal

look for the default command instead and then filter for its children
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

resurrect-processes does not play well with tmux split-window <cmd>
1 participant