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

@@ -30,6 +30,8 @@ set +x
ssh $SSHTARGET bash -c "cat >$BUILDDIR/exec_docker_run" <<_HERE
set +x -e
# make sure all processes exit when ssh dies
shopt -s huponexit
cd $BUILDDIR
export DCC_PY_LIVECONFIG=$DCC_PY_LIVECONFIG
export DCC_NEW_TMP_EMAIL=$DCC_NEW_TMP_EMAIL