Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [BUG] malloc inside signal handler
- X-seq: zsh-workers 49287
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: [BUG] malloc inside signal handler
- Date: Tue, 17 Aug 2021 09:21:35 +0100 (BST)
- Archived-at: <https://zsh.org/workers/49287>
- Importance: Medium
- In-reply-to: <CAH+w=7YevRsxGOV_USF0C6Krgxj=h9YB3TQmsMV55q6C1=UX5Q@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <20210724225048.ly7qpdvi55j3h5mi@localhost> <CAH+w=7YaKruWbbROqsi09KVNyv38wWgk8c+6wwk4NL4x64n=UQ@mail.gmail.com> <20210731202547.yxzvwevxvy22ywm3@localhost> <CAH+w=7YevRsxGOV_USF0C6Krgxj=h9YB3TQmsMV55q6C1=UX5Q@mail.gmail.com>
> On 17 August 2021 at 05:20 Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> Or maybe shingetline() doesn't actually need to call winch_unblock()
> when loop(0,...) is called and isatty(bshin) is false ... which means
> passing the value of toplevel down from loop(). But that probably
> just fixes adjustwinsize() and leaves other signal handlers
> unprotected.
Might be worth doing anyway, since adjustwinsize() is the one that's doing
the big allocation within the signal code. I haven't checked, but I
doubt there's anything like that in the others.
Avoiding stdio for input of this sort doesn't actually look infeasible,
either --- mentions of bshin (buffered shell input from files) are
restricted to only a couple of files. But it's kind of annoying as this
is exactly the job stdio is designed for.
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author