bgoncalv / rpms / ksh

Forked from rpms/ksh 5 years ago
Clone
ac41a62
diff --git a/src/cmd/ksh93/sh/xec.c b/src/cmd/ksh93/sh/xec.c
ac41a62
--- a/src/cmd/ksh93/sh/xec.c
ac41a62
+++ b/src/cmd/ksh93/sh/xec.c
ac41a62
@@ -122,6 +122,7 @@ int iousepipe(Shell_t *shp)
ac41a62
 		return(1);
ac41a62
 	}
ac41a62
 	subpipe[2] = sh_fcntl(fd,F_dupfd_cloexec,10);
ac41a62
+ 	sh_iovalidfd(shp,subpipe[2]);
ac41a62
 	shp->fdstatus[subpipe[2]] = shp->fdstatus[1];
ac41a62
 	while(close(fd)<0 && errno==EINTR)
ac41a62
 		errno = err;