]> andersk Git - openssh.git/commitdiff
- (dtucker) [regress/reconfigure.sh] Fix potential race in the reconfigure
authordtucker <dtucker>
Sat, 12 Nov 2005 10:30:07 +0000 (10:30 +0000)
committerdtucker <dtucker>
Sat, 12 Nov 2005 10:30:07 +0000 (10:30 +0000)
   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.

ChangeLog
regress/reconfigure.sh

index d455003fd9e11e08fead7a68afc0c5f44392fd55..7ade4536db078bb5ccc921e6363cf0a1565c49b1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,9 @@
  - (dtucker) [openbsd-compat/{realpath.c,stroll.c,rresvport.c}] $OpenBSD tag.
  - (dtucker) [configure.ac] Use "$AWK" instead of "awk" in gcc version test.
  - (dtucker) [configure.ac] Remove duplicate utimes() check.  ok djm@
+ - (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.
 
 20051110
  - (dtucker) [openbsd-compat/setenv.c] Merge changes for __findenv from
index ba6dbc6f507944f238c66acbd5025f5ec8205e25..1daf29f9a6e83631fdec6a406ac2aaab65e6ee19 100644 (file)
@@ -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;
This page took 0.071073 seconds and 5 git commands to generate.