summaryrefslogtreecommitdiffhomepage
path: root/build.sh
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2020-02-29 14:19:50 +0000
committerLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2020-02-29 14:19:50 +0000
commit647a12169d5c7417c1a415db14862182ea3c955b (patch)
treecd55d2e514df5b41ca39a976b455b07dd7d5e930 /build.sh
parent4d20d1828729eb038434a003a55e5e4864428073 (diff)
downloadmidipix_build-647a12169d5c7417c1a415db14862182ea3c955b.tar.bz2
midipix_build-647a12169d5c7417c1a415db14862182ea3c955b.tar.xz
build.sh:buildp_ast(): iterate on rtl_kill_tree() until all child processes are gone.
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh13
1 files changed, 9 insertions, 4 deletions
diff --git a/build.sh b/build.sh
index 0a09c250..e4ad9b27 100755
--- a/build.sh
+++ b/build.sh
@@ -10,10 +10,15 @@ buildp_ast() {
if [ -n "${DEFAULT_BUILD_STATUS_IN_PROGRESS_FNAME}" ]; then
rtl_fileop rm "${DEFAULT_BUILD_STATUS_IN_PROGRESS_FNAME}";
fi;
- if rtl_kill_tree "${$}" "TERM"\
- && [ -n "${RTL_KILL_TREE_PIDS}" ]; then
- rtl_log_msg vnfo "Killed PIDs ${RTL_KILL_TREE_PIDS}";
- fi;
+ while true; do
+ RTL_KILL_TREE_PIDS="";
+ if rtl_kill_tree "${$}" "TERM"\
+ && [ -n "${RTL_KILL_TREE_PIDS}" ]; then
+ rtl_log_msg vnfo "Killed PIDs ${RTL_KILL_TREE_PIDS}";
+ else
+ break;
+ fi;
+ done;
};
buildp_dispatch_fail_pkg() {