From: Peter Stephenson <p.w.stephenson@ntlworld.com>
To: zsh-users@zsh.org
Subject: Re: Zsh spins in endless loop with SIGHUP + read in zshexit
Date: Thu, 13 May 2021 19:44:10 +0100 [thread overview]
Message-ID: <0890fd16e2f7d0a8d40f621022ad541ab1c1a9ee.camel@ntlworld.com> (raw)
In-Reply-To: <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@ntlworld.com> 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
next prev parent reply other threads:[~2021-05-13 18:46 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-13 10:17 Jörg Sommer
2021-05-13 14:36 ` Daniel Shahaf
2021-07-18 19:11 ` Lawrence Velázquez
2021-07-27 3:14 ` Daniel Shahaf
2021-05-13 15:51 ` Peter Stephenson
2021-05-13 15:54 ` Bart Schaefer
2021-05-13 16:07 ` Peter Stephenson
2021-05-13 16:30 ` Bart Schaefer
2021-05-13 18:44 ` Peter Stephenson [this message]
2021-05-13 21:37 ` Bart Schaefer
2021-05-14 9:56 ` Peter Stephenson
2021-05-14 17:44 ` Peter Stephenson
2021-05-14 18:51 ` Bart Schaefer
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=0890fd16e2f7d0a8d40f621022ad541ab1c1a9ee.camel@ntlworld.com \
--to=p.w.stephenson@ntlworld.com \
--cc=zsh-users@zsh.org \
/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).