Loading src/nsd-mantid-profile-wrap.sh +3 −3 Original line number Diff line number Diff line Loading @@ -90,11 +90,11 @@ args=("$PROFILE_ENV" "--classic" "-m" "mantidprofiler") # shellcheck disable=SC2206 # do not break the array into a single string args+=(${PROFILE_OPT[@]}) args+=("${pid}") nsd-conda-wrap.sh "${args[@]}" > ${PTMP} & ppid=$i nsd-conda-wrap.sh "${args[@]}" > "${PTMP}" & ppid=$! echo "Writing profile output to ${PTMP}" trap 'set -x ; kill -HUP $pid $ppid' SIGINT # follow output from main app and cleanup tail -f ${TMP} --pid $pid wait -n $ppid && echo "Wrote ${PROFILE_OUT}" tail -f "${TMP}" --pid $pid wait -n "$ppid" && echo "Wrote ${PROFILE_OUT}" trap - EXIT Loading
src/nsd-mantid-profile-wrap.sh +3 −3 Original line number Diff line number Diff line Loading @@ -90,11 +90,11 @@ args=("$PROFILE_ENV" "--classic" "-m" "mantidprofiler") # shellcheck disable=SC2206 # do not break the array into a single string args+=(${PROFILE_OPT[@]}) args+=("${pid}") nsd-conda-wrap.sh "${args[@]}" > ${PTMP} & ppid=$i nsd-conda-wrap.sh "${args[@]}" > "${PTMP}" & ppid=$! echo "Writing profile output to ${PTMP}" trap 'set -x ; kill -HUP $pid $ppid' SIGINT # follow output from main app and cleanup tail -f ${TMP} --pid $pid wait -n $ppid && echo "Wrote ${PROFILE_OUT}" tail -f "${TMP}" --pid $pid wait -n "$ppid" && echo "Wrote ${PROFILE_OUT}" trap - EXIT