Author: jilles
Date: Sun Jun 11 16:54:04 2017
New Revision: 319826
URL: https://svnweb.freebsd.org/changeset/base/319826

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

Modified:
  head/bin/sh/trap.c

Modified: head/bin/sh/trap.c
==============================================================================
--- head/bin/sh/trap.c  Sun Jun 11 14:39:08 2017        (r319825)
+++ head/bin/sh/trap.c  Sun Jun 11 16:54:04 2017        (r319826)
@@ -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);
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to