Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: fd used for saving redirected fds leaked to child processes
- X-seq: zsh-workers 41547
- From: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: fd used for saving redirected fds leaked to child processes
- Date: Mon, 14 Aug 2017 16:24:53 +0100
- Cms-type: 201P
- In-reply-to: <CAH+w=7bUMdLYFd0aBE=xFCizZvkK6Msj93fOAFanF5vZO7QsKg@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- Organization: Samsung Cambridge Solution Centre
- References: <20170813161207.GA6530@chaz.gmail.com> <20170813194939.7a96bc4b@ntlworld.com> <CGME20170813214600epcas4p4764cb5399e27ff0e52a1936ecdf49346@epcas4p4.samsung.com> <CAH+w=7Y3OaN0JJOo=jG-G+yRZ9NUqbNCGZBw6b452_nOWUAKMA@mail.gmail.com> <20170814100956.363c7ea8@pwslap01u.europe.root.pri> <CAH+w=7bUMdLYFd0aBE=xFCizZvkK6Msj93fOAFanF5vZO7QsKg@mail.gmail.com>
On Mon, 14 Aug 2017 07:49:52 -0700
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> On Mon, Aug 14, 2017 at 2:09 AM, Peter Stephenson
> <p.stephenson@xxxxxxxxxxx> wrote:
> >
> > We need to expose the entire hierarchy for this particular case, but
> > that looks like a stack or a linked list, which seems a little
> > heavyweight for this case.
>
> Another flag in the fdtable array?
That probably works --- by default we've got to search 64 fd's for the
flag (the usual size for the fdtable if we don't need to enlarge it)
unless we add a (bug-prone) max saved index, but arguably if that seems
a lot it's the 64 itself that's the target for optimisation as it's
already widely used.
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author