diff options
author | Darren Tucker <dtucker@zip.com.au> | 2011-06-03 06:17:27 +0200 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2011-06-03 06:17:27 +0200 |
commit | 260c8fbc4d8c5865fc312ed56a48b36817507b30 (patch) | |
tree | bb85035d0bc90e7da5ac3cdc05a26f09f5180d91 /regress/dynamic-forward.sh | |
parent | - dtucker@cvs.openbsd.org 2011/06/03 01:37:40 (diff) | |
download | openssh-260c8fbc4d8c5865fc312ed56a48b36817507b30.tar.xz openssh-260c8fbc4d8c5865fc312ed56a48b36817507b30.zip |
- dtucker@cvs.openbsd.org 2011/05/31 02:01:58
[regress/dynamic-forward.sh]
back out revs 1.6 and 1.5 since it's not reliable
Diffstat (limited to 'regress/dynamic-forward.sh')
-rw-r--r-- | regress/dynamic-forward.sh | 26 |
1 files changed, 3 insertions, 23 deletions
diff --git a/regress/dynamic-forward.sh b/regress/dynamic-forward.sh index d6df4491a..0a862b504 100644 --- a/regress/dynamic-forward.sh +++ b/regress/dynamic-forward.sh @@ -1,4 +1,4 @@ -# $OpenBSD: dynamic-forward.sh,v 1.6 2011/05/20 06:32:30 dtucker Exp $ +# $OpenBSD: dynamic-forward.sh,v 1.7 2011/05/31 02:01:58 dtucker Exp $ # Placed in the Public Domain. tid="dynamic forwarding" @@ -21,21 +21,8 @@ start_sshd for p in 1 2; do trace "start dynamic forwarding, fork to background" - rm -f $OBJ/remote_pid - ${SSH} -$p -F $OBJ/ssh_config -D $FWDPORT -q somehost \ - exec sh -c \'"echo \$\$ > $OBJ/remote_pid; exec sleep 444"\' & - client_pid=$! - - # Wait for ssh to start - n=0 - while test ! -f $OBJ/remote_pid; do - sleep 1 - n=`expr $n + 1` - if test $n -gt 60; then - kill $client_pid - fail "Timed out waiting for client to connect" - fi - done + ${SSH} -$p -F $OBJ/ssh_config -f -D $FWDPORT -q somehost \ + exec sh -c \'"echo \$\$ > $OBJ/remote_pid; exec sleep 444"\' for s in 4 5; do for h in 127.0.0.1 localhost; do @@ -54,14 +41,7 @@ for p in 1 2; do if [ $remote -gt 1 ]; then kill -HUP $remote fi - rm -f $OBJ/remote_pid else fail "no pid file: $OBJ/remote_pid" fi - - # Wait for listening ssh to terminate - wait - - # Must allow time for connection tear-down - sleep 2 done |