Re: reset tty modes on TMOUT

Bart Schaefer <[email protected]> Mon, 27 Jul 2026 00:22:17 -0700
Newsgroups gmane.comp.shells.zsh.devel
Message-ID <CAH+w=7Zd-yaSru+t+COnuSjaaO0SC8y5gq6xxZE7AobOa0AzUg@mail.gmail.com>
--000000000000b020440657929571
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Sun, Jul 26, 2026, 11:42=E2=80=AFPM Mikael Magnusson <[email protected]>=
 wrote:

> On Mon, Jul 27, 2026 at 6:07=E2=80=AFAM Bart Schaefer <schaefer@brasslant=
ern.com>
> wrote:
> >
>
>
> > 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.
>
> The default action is to exit,
>

Oh, duh.  I have ALRM trapped in shells by default, so even if I start a
new shell with -f the signal is ignored.

>

--000000000000b020440657929571
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"auto"><div><div class=3D"gmail_quote gmail_quote_container"><di=
v dir=3D"ltr" class=3D"gmail_attr">On Sun, Jul 26, 2026, 11:42=E2=80=AFPM M=
ikael Magnusson &lt;<a href=3D"mailto:[email protected]">[email protected]<=
/a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0=
px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">O=
n Mon, Jul 27, 2026 at 6:07=E2=80=AFAM Bart Schaefer &lt;<a href=3D"mailto:=
[email protected]" target=3D"_blank" rel=3D"noreferrer">schaefer@br=
asslantern.com</a>&gt; wrote:<br>
&gt;<br></blockquote></div></div><div dir=3D"auto"><div class=3D"gmail_quot=
e gmail_quote_container"><blockquote class=3D"gmail_quote" style=3D"margin:=
0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
&gt;<br>
&gt; The patch is easy ... but a new question is why the shell is exiting<b=
r>
&gt; at all.=C2=A0 I didn&#39;t think about this at first, but the ALRM sig=
nal isn&#39;t<br>
&gt; supposed to be fatal.<br>
<br>
The default action is to exit,<br></blockquote></div></div><div dir=3D"auto=
"><br></div><div dir=3D"auto">Oh, duh.=C2=A0 I have ALRM trapped in shells =
by default, so even if I start a new shell with -f the signal is ignored.</=
div><div dir=3D"auto"><div class=3D"gmail_quote gmail_quote_container"><blo=
ckquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left=
:1px solid rgb(204,204,204);padding-left:1ex">
</blockquote></div></div></div>

--000000000000b020440657929571--