1# This test performs validation that ssh client is not successive on being terminated
2
3tid="exit status on signal"
4
5# spawn client in background
6rm -f $OBJ/remote_pid
7${SSH} -F $OBJ/ssh_proxy somehost 'echo $$ >'$OBJ'/remote_pid; sleep 444' &
8ssh_pid=$!
9
10# wait for it to start
11n=20
12while [ ! -f $OBJ/remote_pid ] && [ $n -gt 0 ]; do
13	n=$(($n - 1))
14	sleep 1
15done
16
17kill $ssh_pid
18wait $ssh_pid
19exit_code=$?
20
21if [ $exit_code -eq 0 ]; then
22	fail "ssh client should fail on signal"
23fi
24
25