mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-08-07 02:32:27 +02:00
commit bash-20181123 snapshot
This commit is contained in:
@@ -1213,7 +1213,7 @@ free_trap_string (sig)
|
||||
int sig;
|
||||
{
|
||||
change_signal (sig, (char *)DEFAULT_SIG);
|
||||
sigmodes[sig] &= ~SIG_TRAPPED;
|
||||
sigmodes[sig] &= ~SIG_TRAPPED; /* XXX - SIG_INPROGRESS? */
|
||||
}
|
||||
|
||||
/* Reset the handler for SIG to the original value but leave the trap string
|
||||
@@ -1223,7 +1223,7 @@ reset_signal (sig)
|
||||
int sig;
|
||||
{
|
||||
set_signal_handler (sig, original_signals[sig]);
|
||||
sigmodes[sig] &= ~SIG_TRAPPED;
|
||||
sigmodes[sig] &= ~SIG_TRAPPED; /* XXX - SIG_INPROGRESS? */
|
||||
}
|
||||
|
||||
/* Set the handler signal SIG to the original and free any trap
|
||||
@@ -1246,7 +1246,7 @@ reset_or_restore_signal_handlers (reset)
|
||||
/* Take care of the exit trap first */
|
||||
if (sigmodes[EXIT_TRAP] & SIG_TRAPPED)
|
||||
{
|
||||
sigmodes[EXIT_TRAP] &= ~SIG_TRAPPED;
|
||||
sigmodes[EXIT_TRAP] &= ~SIG_TRAPPED; /* XXX - SIG_INPROGRESS? */
|
||||
if (reset != reset_signal)
|
||||
{
|
||||
free_trap_command (EXIT_TRAP);
|
||||
|
||||
Reference in New Issue
Block a user