From 55c2cd6f483e7cbaef4b0aab884a54281f5ad877 Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Sun, 11 Jun 2017 16:54:04 +0000 Subject: [PATCH] sh: Enable interrupts before executing EXIT trap and doing final flush. --- bin/sh/trap.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/sh/trap.c b/bin/sh/trap.c index ba643d3485df..79444ad1bc10 100644 --- a/bin/sh/trap.c +++ b/bin/sh/trap.c @@ -526,11 +526,13 @@ exitshell_savedstatus(void) */ evalskip = 0; trap[0] = NULL; + FORCEINTON; evalstring(p, 0); } } if (!setjmp(loc2.loc)) { handler = &loc2; /* probably unnecessary */ + FORCEINTON; flushall(); #if JOBS setjobctl(0);