summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2017-07-24 16:48:04 +0100
committerEdward Thomson <ethomson@microsoft.com>2017-07-24 17:38:39 +0100
commit697583ea3aceb1379c576515ffa713ba29c50437 (patch)
tree2b629457a563831ec4fd8664f0b6126a4066b2fa /script
parent4da38193c568ca3842bc1130c82e7a9f955f23aa (diff)
downloadlibgit2-697583ea3aceb1379c576515ffa713ba29c50437.tar.gz
travis: only kill our own sshd
Diffstat (limited to 'script')
-rwxr-xr-xscript/cibuild.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/script/cibuild.sh b/script/cibuild.sh
index 9239136dd..74946db0a 100755
--- a/script/cibuild.sh
+++ b/script/cibuild.sh
@@ -50,6 +50,7 @@ cat >~/sshd/sshd_config<<-EOF
ListenAddress 0.0.0.0
Protocol 2
HostKey ${HOME}/sshd/id_rsa
+ PidFile ${HOME}/sshd/pid
RSAAuthentication yes
PasswordAuthentication yes
PubkeyAuthentication yes
@@ -99,7 +100,7 @@ if [ -e ./libgit2_clar ]; then
fi
-killall sshd
+kill $(cat "$HOME/sshd/pid")
export GITTEST_REMOTE_URL="https://github.com/libgit2/non-existent"
export GITTEST_REMOTE_USER="libgit2test"