Skip to content

Commit 697583e

Browse files
ethomsonEdward Thomson
authored andcommitted
travis: only kill our own sshd
1 parent 4da3819 commit 697583e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

script/cibuild.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ cat >~/sshd/sshd_config<<-EOF
5050
ListenAddress 0.0.0.0
5151
Protocol 2
5252
HostKey ${HOME}/sshd/id_rsa
53+
PidFile ${HOME}/sshd/pid
5354
RSAAuthentication yes
5455
PasswordAuthentication yes
5556
PubkeyAuthentication yes
@@ -99,7 +100,7 @@ if [ -e ./libgit2_clar ]; then
99100

100101
fi
101102

102-
killall sshd
103+
kill $(cat "$HOME/sshd/pid")
103104

104105
export GITTEST_REMOTE_URL="https://github.com/libgit2/non-existent"
105106
export GITTEST_REMOTE_USER="libgit2test"

0 commit comments

Comments
 (0)