# This test performs validation that ssh client is not successive on being terminatedtid="exit status on signal"# spawn client in backgroundrm -f $OBJ/remote_pid
${SSH} -F $OBJ/ssh_proxy somehost 'echo $$ >'$OBJ'/remote_pid; sleep 444' &
ssh_pid=$!
# wait for it to startn=20while[ ! -f $OBJ/remote_pid ]&&[ $n -gt 0]; do n=$(($n -1)) sleep 1donekill $ssh_pid
wait $ssh_pid
exit_code=$?
if[ $exit_code -eq 0]; then fail "ssh client should fail on signal"fi