summaryrefslogtreecommitdiff
path: root/trap.c
diff options
context:
space:
mode:
authorChet Ramey <chet.ramey@case.edu>2020-09-09 15:25:32 -0400
committerChet Ramey <chet.ramey@case.edu>2020-09-09 15:25:32 -0400
commit3eb0018e75b74bb886df7fba4b1712529ce7258f (patch)
tree13b53713ef8f483a82295324e314da48b59c9346 /trap.c
parent712f80b0a49c3a0227d0b52bff5e0b763747697e (diff)
downloadbash-5.1-beta.tar.gz
bash-5.1 beta releasebash-5.1-beta
Diffstat (limited to 'trap.c')
-rw-r--r--trap.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/trap.c b/trap.c
index c5687187..da071b35 100644
--- a/trap.c
+++ b/trap.c
@@ -499,13 +499,10 @@ trap_handler (sig)
/* Set the event hook so readline will call it after the signal handlers
finish executing, so if this interrupted character input we can get
quick response. */
- if (RL_ISSTATE (RL_STATE_SIGHANDLER) && interrupt_immediately == 0)
+ if (RL_ISSTATE (RL_STATE_SIGHANDLER))
bashline_set_event_hook ();
#endif
- if (interrupt_immediately)
- run_pending_traps ();
-
errno = oerrno;
}
@@ -514,6 +511,7 @@ trap_handler (sig)
int
next_pending_trap (start)
+ int start;
{
register int i;