Re: reset tty modes on TMOUT
Bart Schaefer <[email protected]> Sun, 26 Jul 2026 20:53:17 -0700
| Newsgroups | gmane.comp.shells.zsh.devel |
|---|---|
| Message-ID | <CAH+w=7bw175m+3zP-vh-152anB_ZagfLiTPFgZpxS3N3GwtNQQ@mail.gmail.com> |
On Sat, Jul 25, 2026 at 11:22=E2=80=AFAM J.R. Oldroyd <[email protected]> wrote= : > > On Fri, 24 Jul 2026 19:36:35 -0700 Bart Schaefer <[email protected]= om> wrote: > > > > On Fri, Jul 24, 2026 at 10:26=E2=80=AFAM J.R. Oldroyd <[email protected]> w= rote: > > > > > > + if (zleactive) > > > + settyinfo(&shttyinfo); > > > stopmsg =3D 1; > > > zexit(SIGALRM, ZEXIT_SIGNAL); > > > > Shouldn't this happen inside zexit() for any ZEXIT_SIGNAL ? That question was more aimed at zsh-workers in general. In fact I wonder whether zexit() ought to reset the tty when zleactive no matter what caused the exit. > If you wish to send any alternate patches, I am happy to try and post > back if they work or not. The patch is easy ... but a new question is why the shell is exiting at all. I didn't think about this at first, but the ALRM signal isn't supposed to be fatal.