db8b5b018f
The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/ksh#642af4d65a6ae8825306305765a595a6f10eba47
12 lines
367 B
Diff
12 lines
367 B
Diff
diff --git a/src/cmd/ksh93/sh/xec.c b/src/cmd/ksh93/sh/xec.c
|
|
--- a/src/cmd/ksh93/sh/xec.c
|
|
+++ b/src/cmd/ksh93/sh/xec.c
|
|
@@ -122,6 +122,7 @@ int iousepipe(Shell_t *shp)
|
|
return(1);
|
|
}
|
|
subpipe[2] = sh_fcntl(fd,F_dupfd_cloexec,10);
|
|
+ sh_iovalidfd(shp,subpipe[2]);
|
|
shp->fdstatus[subpipe[2]] = shp->fdstatus[1];
|
|
while(close(fd)<0 && errno==EINTR)
|
|
errno = err;
|