diff options
author | Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de> | 2020-02-29 13:17:19 +0000 |
---|---|---|
committer | Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de> | 2020-02-29 13:17:19 +0000 |
commit | fa4a80dd5993cc64a72c92a450b3a25e3949eb4f (patch) | |
tree | ce7031517179866c8448a0d24a7e5822e6c5a470 /build.sh | |
parent | 339f40adfad8f4577d9fca6b0f02788af7ee87f0 (diff) | |
download | midipix_build-fa4a80dd5993cc64a72c92a450b3a25e3949eb4f.tar.bz2 midipix_build-fa4a80dd5993cc64a72c92a450b3a25e3949eb4f.tar.xz |
build.sh:buildp_ast(): correctly call rtl_kill_tree().
subr/rtl_complex.subr:rtl_kill_tree(): iteratively & recursively kill tree of processes excluding ${$}.
Diffstat (limited to 'build.sh')
-rwxr-xr-x | build.sh | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -3,16 +3,16 @@ # buildp_ast() { - local _param="${1}" _pids_killed=""; + local _param="${1}" RTL_KILL_TREE_PIDS=""; if [ "${_param}" = "abort" ]; then rtl_log_msg failexit "Build aborted."; fi; if [ -n "${DEFAULT_BUILD_STATUS_IN_PROGRESS_FNAME}" ]; then rtl_fileop rm "${DEFAULT_BUILD_STATUS_IN_PROGRESS_FNAME}"; fi; - if rtl_kill_tree "${$}"\ - && [ -n "${_pids_killed}" ]; then - rtl_log_msg vnfo "Killed PIDs ${_pids_killed}"; + if rtl_kill_tree "${$}" "TERM"\ + && [ -n "${RTL_KILL_TREE_PIDS}" ]; then + rtl_log_msg vnfo "Killed PIDs ${RTL_KILL_TREE_PIDS}"; fi; }; |