tpm
tpm copied to clipboard
Starting tmux as another user puts TPM in an infinite process spawn
I'm in a harmful situation, as I started tmux as another user for testing purposes, now I see spawning processes like sh -c ~/.tmux/plugins/tpm/tpm
, infinitely running. Here is the output of ps -aef --forest
.
alessan+ 13592 1 0 09:55 ? 00:00:00 sh -c ~/.tmux/plugins/tpm/tpm
alessan+ 13597 13592 0 09:55 ? 00:00:00 \_ bash /home/charles/.tmux/plugins/tpm/tpm
alessan+ 13817 13597 0 09:55 ? 00:00:00 \_ bash /home/charles/.tmux/plugins/tpm/scripts/source_plugins.sh
alessan+ 13662 1 0 09:55 ? 00:00:00 sh -c ~/.tmux/plugins/tpm/tpm
alessan+ 13671 13662 0 09:55 ? 00:00:00 \_ bash /home/charles/.tmux/plugins/tpm/tpm
alessan+ 13905 13671 0 09:55 ? 00:00:00 \_ bash /home/charles/.tmux/plugins/tpm/scripts/source_plugins.sh
alessan+ 13960 13905 0 09:55 ? 00:00:00 \_ bash /home/charles/.tmux/plugins/tpm/scripts/source_plugins.sh
alessan+ 13734 1 0 09:55 ? 00:00:00 sh -c ~/.tmux/plugins/tpm/tpm
alessan+ 13746 13734 0 09:55 ? 00:00:00 \_ bash /home/charles/.tmux/plugins/tpm/tpm
alessan+ 13972 13746 0 09:55 ? 00:00:00 \_ bash /home/charles/.tmux/plugins/tpm/scripts/source_plugins.sh
alessan+ 13839 1 0 09:55 ? 00:00:00 sh -c ~/.tmux/plugins/tpm/tpm
alessan+ 13851 13839 0 09:55 ? 00:00:00 \_ bash /home/charles/.tmux/plugins/tpm/tpm
alessan+ 13896 1 0 09:55 ? 00:00:00 sh -c ~/.tmux/plugins/tpm/tpm
alessan+ 13902 13896 0 09:55 ? 00:00:00 \_ bash /home/charles/.tmux/plugins/tpm/tpm
alessan+ 13969 1 0 09:55 ? 00:00:00 sh -c ~/.tmux/plugins/tpm/tpm
alessan+ 13974 13969 0 09:55 ? 00:00:00 \_ bash /home/charles/.tmux/plugins/tpm/tpm
The initial command was sudo -u alessandro tmux a
.
Looking at execsnoop
, the rate of process spawning is very high, and I have no idea on how to stop this!
My .tmux.conf
(relevant excerpts):
set-option -g default-command "$SHELL"
# address vim mode switching delay (http://superuser.com/a/252717/65504)
set-option -s escape-time 0
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-yank'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run -b '~/.tmux/plugins/tpm/tpm'
(I have tmux 2.1)
To stop this situation I had to rename path to tpm
@CharlesB2 experiencing something similar though it's not necessary to start as another user. Can you explain what you mean by this:
To stop this situation I had to rename path to tpm
Can you explain what you mean by this:
To stop this situation I had to rename path to tpm
I mean I had to temporarily move or rename (don't remember) the directory where tpm
is installed, so that the infinite loop stops