From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@sunsite.dk
Subject: Re: Any comment on file descriptor behavior in functions?
Date: Tue, 22 Mar 2005 18:31:20 +0000 [thread overview]
Message-ID: <1050322183120.ZM13954@candle.brasslantern.com> (raw)
In-Reply-To: <1050322171125.ZM13668@candle.brasslantern.com>
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);
prev parent reply other threads:[~2005-03-22 18:31 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-21 0:22 Bart Schaefer
2005-03-21 11:17 ` Peter Stephenson
2005-03-22 14:04 ` Peter Stephenson
2005-03-22 17:11 ` Bart Schaefer
2005-03-22 18:31 ` Peter Stephenson
2005-03-26 17:05 ` Bart Schaefer
2005-03-31 8:52 ` Peter Stephenson
2005-03-22 18:31 ` Bart Schaefer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1050322183120.ZM13954@candle.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).