Skip to content
Permalink
Browse files
Test : send signal to remote process.
  • Loading branch information
JawaGL committed Jul 25, 2018
1 parent 9c5475a commit 02c39b1
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
@@ -84,7 +84,8 @@ LTESTS= connect \
cert-file \
cfginclude \
allow-deny-users \
authinfo
authinfo \
signal


# dhgex \
@@ -0,0 +1,21 @@
#!/bin/sh
tid="escape char ~ST"

start_sshd

{ sleep 5; printf ~ST;} | ${SSH} -F $OBJ/ssh_config -tt somehost "alarm(){ echo \"ALARM\"; exit 124; };
expected(){ echo \"TERM\"; exit 0; };
trap alarm ALRM;
trap expected TERM;
(sleep 10 && kill -ALRM \$\$) &
wait \$!;
"

ret=$?

if [ $ret -ne 0 ]
then
fail "Fail escape char with exitcode : $ret"
fi

0 comments on commit 02c39b1

Please sign in to comment.