22124201 TCSH Latest Patch 126630-03 changes the behavior of Exit . You cannot exit .
authorMike Sullivan <Mike.Sullivan@Oracle.COM>
Mon, 02 Nov 2015 11:02:02 -0800
changeset 5040 6242a3f0012d
parent 5036 06e4fcc325a1
child 5041 eee102d80c6e
22124201 TCSH Latest Patch 126630-03 changes the behavior of Exit . You cannot exit .
components/tcsh/patches/007.heredoc.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/tcsh/patches/007.heredoc.patch	Mon Nov 02 11:02:02 2015 -0800
@@ -0,0 +1,19 @@
+Developed in-house but accepted upstream.
+
+--- tcsh-6.18.01/sh.sem.c.orig	Sat Oct 31 10:58:21 2015
++++ tcsh-6.18.01/sh.sem.c	Sat Oct 31 10:59:42 2015
+@@ -212,8 +212,14 @@
+ 	 * If noexec then this is all we do.
+ 	 */
+ 	if (t->t_dflg & F_READ) {
++	    int	old_pintr_disabled;
++	    
+ 	    xclose(0);
++	    if (setintr)
++	        pintr_push_enable(&old_pintr_disabled);
+ 	    heredoc(t->t_dlef);
++	    if (setintr)
++	        cleanup_until(&old_pintr_disabled);
+ 	    if (noexec)
+ 		xclose(0);
+ 	}