sh: Enable interrupts before executing EXIT trap and doing final flush.
This commit is contained in:
parent
fc8929cb29
commit
55c2cd6f48
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=319826
@ -526,11 +526,13 @@ exitshell_savedstatus(void)
|
|||||||
*/
|
*/
|
||||||
evalskip = 0;
|
evalskip = 0;
|
||||||
trap[0] = NULL;
|
trap[0] = NULL;
|
||||||
|
FORCEINTON;
|
||||||
evalstring(p, 0);
|
evalstring(p, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!setjmp(loc2.loc)) {
|
if (!setjmp(loc2.loc)) {
|
||||||
handler = &loc2; /* probably unnecessary */
|
handler = &loc2; /* probably unnecessary */
|
||||||
|
FORCEINTON;
|
||||||
flushall();
|
flushall();
|
||||||
#if JOBS
|
#if JOBS
|
||||||
setjobctl(0);
|
setjobctl(0);
|
||||||
|
Loading…
Reference in New Issue
Block a user