svn commit: r319826 - head/bin/sh

Jilles Tjoelker jilles at FreeBSD.org
Sun Jun 11 16:54:06 UTC 2017


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


More information about the svn-src-all mailing list