Lines Matching refs:subpipe
104 static int subpipe[3],subdup,tsetio,usepipe;
115 if(sh_rpipe(subpipe) < 0)
118 fcntl(subpipe[0],F_SETFD,FD_CLOEXEC);
119 subpipe[2] = fcntl(1,F_DUPFD,10);
120 fcntl(subpipe[2],F_SETFD,FD_CLOEXEC);
121 shp->fdstatus[subpipe[2]] = shp->fdstatus[1];
123 fcntl(subpipe[1],F_DUPFD,1);
124 shp->fdstatus[1] = shp->fdstatus[subpipe[1]];
125 sh_close(subpipe[1]);
143 fcntl(subpipe[2], F_DUPFD, 1);
144 shp->fdstatus[1] = shp->fdstatus[subpipe[2]];
156 sh_close(subpipe[2]);
170 if((n = read(subpipe[0],buff,sizeof(buff)))==0)
177 sh_close(subpipe[0]);
178 subpipe[0] = -1;