-
Notifications
You must be signed in to change notification settings - Fork 424
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
resurrect-processes does not play well with tmux split-window <cmd>
#517
Comments
here is the contents of the state file:
it looks like |
it turns out the ps --ppid ${PANE_PID} -o args | tail -n +2 then everything works fine. i'll make a PR with that change. |
hmm. no, it's a little more complicated than that. my fix there only works if you pass the script the PID of the tmux server. but when restoring, resurrect needs to know the PID running in that pane, it can't indiscriminately spawn every process at once. the way it normally does that is to take the output of i am not quite sure what the correct fix is. maybe if there are no children with a controlling terminal, we can fall back to the parent process? |
reproduction steps:
tmux split-window vim
<prefix> C-s
)tmux kill-server
<prefix> C-r
)the pane containing the command is correctly restored, but the process running inside it is not. this is especially confusing when
resurrect-capture-pane-contents
is enabled, as it looks like the process is running, but it's not.The text was updated successfully, but these errors were encountered: