try harder to let all build processes die when ssh dies

This commit is contained in:
holger krekel
2020-08-23 08:03:40 +02:00
parent 0fc57bdb35
commit aae8163696
3 changed files with 10 additions and 2 deletions

View File

@@ -22,8 +22,12 @@ set +x
echo "--- Running $CIRCLE_JOB remotely"
ssh $SSHTARGET <<_HERE
ssh -t -t $SSHTARGET <<_HERE
set +x -e
# make sure all processes exit when ssh dies
shopt -s huponexit
export RUSTC_WRAPPER=\`which sccache\`
cd $BUILDDIR
# let's share the target dir with our last run on this branch/job-type