Do not exit on SIGCHLD:
With bash 5.0, a SIGCHLD signal is sent whenever a subshell exits. The signal numbers passed to the trap instruction in jhalfs contain SIGCHLD, and this new behavior causes jhalfs to exit. Fix this by using names instead of numbers for the trap, and (of course) not trapping SIGCHLD.
This commit is contained in:
parent
f168be19d5
commit
d505128fbc
1 changed files with 3 additions and 1 deletions
4
jhalfs
4
jhalfs
|
@ -66,7 +66,9 @@ see_ya() {
|
|||
set -e
|
||||
trap see_ya 0
|
||||
trap 'simple_error "${LINENO}" "$?" "${FUNCNAME}" "${BASH_SOURCE}"' ERR
|
||||
trap 'echo -e "\n\n${RED}INTERRUPT${OFF} trapped\n" && exit 2' 1 2 3 15 17 18 23
|
||||
trap 'echo -e "\n\n${RED}INTERRUPT${OFF} trapped\n" && exit 2' \
|
||||
HUP INT QUIT TERM # STOP stops tterminal output and does not seem to
|
||||
# execute the handler
|
||||
#>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
|
||||
|
||||
version="
|
||||
|
|
Reference in a new issue