summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bin/sh/trap.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/bin/sh/trap.c b/bin/sh/trap.c
index b025a300208ca..1b9ab63f47cb1 100644
--- a/bin/sh/trap.c
+++ b/bin/sh/trap.c
@@ -382,12 +382,7 @@ onsig(int signo)
{
if (signo == SIGINT && trap[SIGINT] == NULL) {
- /*
- * The !in_dotrap here is safe. The only way we can arrive
- * here with in_dotrap set is that a trap handler set SIGINT to
- * SIG_DFL and killed itself.
- */
- if (suppressint && !in_dotrap)
+ if (suppressint)
SET_PENDING_INT;
else
onint();