summaryrefslogtreecommitdiff
path: root/trap.c
diff options
context:
space:
mode:
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;