Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: reset tty modes on TMOUT



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