Skip to content

Commit

Permalink
Fix: don't use exit handler
Browse files Browse the repository at this point in the history
The reason why it worked on Ubuntu 20.04 was that the EXIT handler was
not called, while on Ubuntu 24.04 it correctly is.

Signed-off-by: Bolun Thompson <[email protected]>
  • Loading branch information
BolunThompson committed Dec 30, 2024
1 parent 509fcf0 commit 07b09be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion compiler/pash_runtime.sh
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,10 @@ else
pash_redir_output echo "$$: (5) BaSh script exited with ec: $pash_runtime_final_status"
else
function run_parallel() {
trap inform_daemon_exit SIGTERM SIGINT EXIT
trap inform_daemon_exit SIGTERM SIGINT
export SCRIPT_TO_EXECUTE="$pash_script_to_execute"
source "$RUNTIME_DIR/pash_restore_state_and_execute.sh"
inform_daemon_exit
}
# Should we redirect errors aswell?
# TODO: capturing the return state here isn't completely correct.
Expand Down

0 comments on commit 07b09be

Please sign in to comment.