summaryrefslogtreecommitdiff
path: root/regress/reconfigure.sh
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/reconfigure.sh
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/reconfigure.sh')
-rw-r--r--regress/reconfigure.sh5
1 files changed, 3 insertions, 2 deletions
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
15 15
16start_sshd 16start_sshd
17 17
18$SUDO kill -HUP `cat $PIDFILE` 18PID=`cat $PIDFILE`
19sleep 1 19rm -f $PIDFILE
20$SUDO kill -HUP $PID
20 21
21trace "wait for sshd to restart" 22trace "wait for sshd to restart"
22i=0; 23i=0;