Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > 7445888659893398b01d014bc633b458 > files > 21

ksh-20100621-18.el5.src.rpm

--- ksh-20100621/src/cmd/ksh93/sh/xec.c	2012-02-27 14:57:24.638858712 +0100
+++ ksh-20100621/src/cmd/ksh93/sh/xec.c	2012-02-27 14:58:23.528361856 +0100
@@ -91,6 +91,7 @@ static void iousepipe(Shell_t *shp)
 	int i;
 	fcntl(subpipe[0],F_SETFD,FD_CLOEXEC);
 	subpipe[2] = fcntl(1,F_DUPFD,10);
+	fcntl(subpipe[2],F_SETFD,FD_CLOEXEC);
 	shp->fdstatus[subpipe[2]] = shp->fdstatus[1];
 	close(1);
 	fcntl(subpipe[1],F_DUPFD,1);