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

This commit is contained in:
Jilles Tjoelker 2017-06-11 16:54:04 +00:00
parent fc8929cb29
commit 55c2cd6f48
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=319826

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