stop intercepting INT signals (ctrl-C)

this signal hook provoked several problems in interactive applications
as the devuan -sdk where it may be desirable and almost automatic
behavior to stop an operation with ctrl-c. intercepting this signal in
endgame then leads to frustration as all variables and current
configurations are forgotten.

it must be still assessed carefully the impact of this change in all
applications and eventually reverted to have an "interactive" mode
where zuper avoids interception.
This commit is contained in:
Jaromil 2017-09-03 12:39:38 +02:00
parent 40e808ec03
commit f23216094a
1 changed files with 1 additions and 1 deletions

2
zuper
View File

@ -233,7 +233,7 @@ catch() { function TRAPZERR() { } }
arrs+=(destruens)
# Trap functions for the endgame event
TRAPINT() { endgame INT; return $? }
# TRAPINT() { endgame INT; return $? }
# TRAPEXIT() { endgame EXIT; return $? }
TRAPHUP() { endgame HUP; return $? }
TRAPQUIT() { endgame QUIT; return $? }