Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Zsh spins in endless loop with SIGHUP + read in zshexit
- X-seq: zsh-users 26739
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: Zsh spins in endless loop with SIGHUP + read in zshexit
- Date: Thu, 13 May 2021 19:44:10 +0100
- Archived-at: <https://zsh.org/users/26739>
- In-reply-to: <CAH+w=7ZY5ePBzSOUboo_65ArUbz1B9tApJDQGoFCQ97wwZ3zQg@mail.gmail.com>
- List-id: <zsh-users.zsh.org>
- References: <20210513101751.j5vo2dbrd5uzwju4@jo-so.de> <CAH+w=7ZUJ_WMjJzx-fcwEVigji-nkLfRRdoWGgS8rpwiXck7Eg@mail.gmail.com> <119769213.82300.1620922030356@mail2.virginmedia.com> <CAH+w=7ZY5ePBzSOUboo_65ArUbz1B9tApJDQGoFCQ97wwZ3zQg@mail.gmail.com>
On Thu, 2021-05-13 at 09:30 -0700, Bart Schaefer wrote:
> On Thu, May 13, 2021 at 9:07 AM Peter Stephenson
> <p.w.stephenson@xxxxxxxxxxxx> wrote:
> >
> > [...] don't see why
> > your simple patch shouldn't work.
>
> I suppose it comes down to what we might find in other callers of
> zexit().
Presumably ones in loops are the nasty ones. I couldn't see anything
obvious.
I haven't looked for cases where we're disobeying "exit" from shell code
owing to the same logic, but I think the fix there would probably be
different (you may be stuck in a loop in shell code). This is
completely hypothetical, though.
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author