Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: bug with named pipes and process substitution



On 22.07.2015 11:58, Peter Stephenson wrote:
> On Wed, 22 Jul 2015 10:09:44 +0100
> @@ -1188,7 +1188,9 @@ pipecleanfilelist(LinkList filelist)
>      node = firstnode(filelist);
>      while (node) {
>  	Jobfile jf = (Jobfile)getdata(node);
> -	if (jf->is_fd) {
> +	if (jf->is_fd &&
> +	    (!proc_subst_only ||
> +	     fdtable[jf->u.fd] == FDT_PROC_SUBST)) {
>  	    LinkNode next = nextnode(node);
>  	    zclose(jf->u.fd);
>  	    (void)remnode(filelist, node);

This change introduces a compile error when PATH_DEV_FD is not defined
(cygwin), because FDT_PROC_SUBST is only defined in case PATH_DEV_FD is,
too.



Messages sorted by: Reverse Date, Date, Thread, Author