Skip to content

Commit

Permalink
Using exec when starting a backend instead of spawning a new process (#…
Browse files Browse the repository at this point in the history
…2720)

Co-authored-by: Simon Siebert <[email protected]>
  • Loading branch information
a17t and DTTLansiebert authored Jul 5, 2024
1 parent 9280060 commit 17608ea
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions backend/python/common/libbackend.sh
Original file line number Diff line number Diff line change
Expand Up @@ -148,13 +148,13 @@ function startBackend() {
ensureVenv

if [ ! -z ${BACKEND_FILE} ]; then
python ${BACKEND_FILE} $@
exec python ${BACKEND_FILE} $@
elif [ -e "${MY_DIR}/server.py" ]; then
python ${MY_DIR}/server.py $@
exec python ${MY_DIR}/server.py $@
elif [ -e "${MY_DIR}/backend.py" ]; then
python ${MY_DIR}/backend.py $@
exec python ${MY_DIR}/backend.py $@
elif [ -e "${MY_DIR}/${BACKEND_NAME}.py" ]; then
python ${MY_DIR}/${BACKEND_NAME}.py $@
exec python ${MY_DIR}/${BACKEND_NAME}.py $@
fi
}

Expand Down Expand Up @@ -210,4 +210,4 @@ function checkTargets() {
echo false
}

init
init

0 comments on commit 17608ea

Please sign in to comment.