sh: Enable interrupts before executing EXIT trap and doing final flush.

This commit is contained in:
jilles 2017-06-11 16:54:04 +00:00
parent a17a213fbb
commit 75a08b42cd

View File

@ -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);