From 7362c36ab865f69a045e8152256832bf74097854 Mon Sep 17 00:00:00 2001 From: Xavier Logerais Date: Mon, 10 Dec 2018 13:41:18 +0100 Subject: [PATCH] Fix rc.d/tmux for cases where there is tmux process belongings to other users --- rc.d/tmux | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc.d/tmux b/rc.d/tmux index 9cc1060..a695b74 100755 --- a/rc.d/tmux +++ b/rc.d/tmux @@ -3,7 +3,7 @@ # GNU Screen stuff if ( which tmux &> /dev/null ) then - if [ $(pgrep "tmux" | wc -l) -gt 0 ] + if [ $(pgrep -u "$UID" "tmux" | wc -l) -gt 0 ] then if [[ $TERM != screen* ]] then