summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2005-11-12 21:30:07 +1100
committerDarren Tucker <dtucker@zip.com.au>2005-11-12 21:30:07 +1100
commitcb6ecdea6c56c21da4b9ba0612ce4a035ffe6417 (patch)
treefd9497c89d5e3b51030c64e3b0e059248c319775 /regress
parent5bfe1687dd85151649584aaaaf9bd85b67c9b61a (diff)
- (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.
Diffstat (limited to 'regress')
-rw-r--r--regress/reconfigure.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/regress/reconfigure.sh b/regress/reconfigure.sh
index ba6dbc6f..1daf29f9 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;