Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Any comment on file descriptor behavior in functions?
- X-seq: zsh-workers 21050
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: Any comment on file descriptor behavior in functions?
- Date: Tue, 22 Mar 2005 18:31:20 +0000
- In-reply-to: <1050322171125.ZM13668@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <1050321002236.ZM10916@xxxxxxxxxxxxxxxxxxxxxxx> <200503221404.j2ME41EL009572@xxxxxxxxxxxxxx> <1050322171125.ZM13668@xxxxxxxxxxxxxxxxxxxxxxx>
On Mar 22, 5:11pm, Bart Schaefer wrote:
}
} That's not it, or rather it's too much of it. That also leaves open the
} xtrace output descriptor, etc. The fix needs to be more specific.
I think it's as easy as this -- but I may have missed something, too:
Index: Src/exec.c
===================================================================
RCS file: /extra/cvsroot/zsh/zsh-4.0/Src/exec.c,v
retrieving revision 1.24
diff -c -r1.24 exec.c
--- Src/exec.c 18 Feb 2005 17:05:15 -0000 1.24
+++ Src/exec.c 22 Mar 2005 18:27:34 -0000
@@ -2415,7 +2415,7 @@
for (i = 10; i <= max_zsh_fd; i++)
if (fdtable[i] > 1)
- fdtable[i]++;
+ fdtable[i] += 2;
#endif
if (subsh_close >= 0)
zclose(subsh_close);
Messages sorted by:
Reverse Date,
Date,
Thread,
Author