Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: reset tty modes on TMOUT
- X-seq: zsh-workers 55035
- From: "J.R. Oldroyd" <fbsd@xxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Cc: zsh-workers@xxxxxxx
- Subject: Re: reset tty modes on TMOUT
- Date: Sat, 25 Jul 2026 14:22:44 -0400
- Archived-at: <https://zsh.org/workers/55035>
- In-reply-to: <CAH+w=7YNnsxGEbJp08c3ruiJsv=0deRNZRGgQnKRF-kSL_hOeQ@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <20260724132556.6c1f059d@opal.com> <CAH+w=7YNnsxGEbJp08c3ruiJsv=0deRNZRGgQnKRF-kSL_hOeQ@mail.gmail.com>
On Fri, 24 Jul 2026 19:36:35 -0700 Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> On Fri, Jul 24, 2026 at 10:26 AM J.R. Oldroyd <fbsd@xxxxxxxx> wrote:
> >
> > + if (zleactive)
> > + settyinfo(&shttyinfo);
> > stopmsg = 1;
> > zexit(SIGALRM, ZEXIT_SIGNAL);
>
> Shouldn't this happen inside zexit() for any ZEXIT_SIGNAL ?
>
> Workaround: Use "ttyctl -f" in the parent.
>
I am not really familiar with the zsh code, so can't really answer.
The patch as provided has worked since 2023.
If you wish to send any alternate patches, I am happy to try and post
back if they work or not.
Also, if you wish to add:
#ifdef __FreeBSD__
around it to make it FreeBSD only, that works.
-jr
Messages sorted by:
Reverse Date,
Date,
Thread,
Author