From cb6ecdea6c56c21da4b9ba0612ce4a035ffe6417 Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Sat, 12 Nov 2005 21:30:07 +1100 Subject: - (dtucker) [regress/reconfigure.sh] Fix potential race in the reconfigure test: if sshd takes too long to reconfigure the subsequent connection will fail. Zap pidfile before HUPing sshd which will rewrite it when it's ready. --- regress/reconfigure.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'regress/reconfigure.sh') diff --git a/regress/reconfigure.sh b/regress/reconfigure.sh index ba6dbc6f5..1daf29f9a 100644 --- a/regress/reconfigure.sh +++ b/regress/reconfigure.sh @@ -15,8 +15,9 @@ esac start_sshd -$SUDO kill -HUP `cat $PIDFILE` -sleep 1 +PID=`cat $PIDFILE` +rm -f $PIDFILE +$SUDO kill -HUP $PID trace "wait for sshd to restart" i=0; -- cgit v1.2.3