Skip to content

Commit

Permalink
bugfix: this was causing a trap in macOS; see issue #242
Browse files Browse the repository at this point in the history
  • Loading branch information
scott-vsi committed May 16, 2020
1 parent c1f8d69 commit 66291fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion linux/signal_tools.bsh
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ function trap_chain()

# Since there was no signal already assigned, the sanitize signal name is
# not in last_info, so we'll have to make it
last_info="$(trap '' "${2}"; trap -p "${2}" | { read x ; echo "${x##* }"; })"
last_info="$((trap '' "${2}"; trap -p "${2}") | { read x ; echo "${x##* }"; })"

clear_a "_TRAP_CHAIN_${last_info}"
last_info="_TRAP_CHAIN_${last_info}_LAST_PID"
Expand Down

0 comments on commit 66291fe

Please sign in to comment.