components/tcsh/patches/007.heredoc.patch
author Tomas Kuthan <tomas.kuthan@oracle.com>
Wed, 20 Apr 2016 13:13:57 -0700
changeset 5820 cef0da89f9ee
parent 5271 195e24ffa71a
permissions -rw-r--r--
PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates 23030875 network/ssh SMF method: generate correct host key types

Developed in-house but accepted upstream.

--- tcsh-6.19.00/sh.sem.c.orig	Sat Oct 31 10:58:21 2015
+++ tcsh-6.19.00/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);
 	}