3 # when we kill a session, processes running in it should be killed
8 [ -z "$TEST_TMUX" ] && TEST_TMUX
=$
(readlink
-f ..
/tmux
)
9 TMUX
="$TEST_TMUX -Ltest"
10 $TMUX kill-server
2>/dev
/null
13 $TMUX -f/dev
/null new
-d 'sleep 1000' ||
exit 1
14 P
=$
($TMUX display
-pt0:0.0 '#{pane_pid}')
15 $TMUX -f/dev
/null new
-d ||
exit 1
17 $TMUX kill-session
-t0:
19 kill -0 $P 2>/dev
/null
&& exit 1
20 $TMUX kill-server
2>/dev
/null