Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: reset tty modes on TMOUT
- X-seq: zsh-workers 55040
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: "J.R. Oldroyd" <fbsd@xxxxxxxx>
- Cc: zsh-workers@xxxxxxx
- Subject: Re: reset tty modes on TMOUT
- Date: Sun, 26 Jul 2026 20:53:17 -0700
- Arc-authentication-results: i=1; mx.google.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=RYsRwA5qQ8M834LNawFFa4b+bnEI52YssbR6mUyfoaw=; fh=wijsB8oTIQVrkw0V/wIm63nHdkT3mKpzg9rzmWKAw98=; b=ixXAaCmX9vjGZL2bkLk82iiEXrSE6g1aXiiL9w3AO5ab1omn1bof0smCLh4wde6Kks +BI3uKAqyZ39K63nC2CS6RmfIpTVzp1nGIl4B/abRFXTEHVACSALm6E+RUa684R+Ss6w 0wa2VbCklSZF9WSRS6XXPhoafONlLTEvcqDmEob8iNOqlNZVTFBExXze1afXnl02AYrk Ki6jMt+Z7vMpUb9ZLniCxVG1NSMrhFiIDEwatVQd4LrIeMlgHfqQva+zw458l+D9XY84 Pvdjtwbs8ex6457KdYLufmQZwTc8djNxt9FMAZnBOC9jJzeJMbTxNe1kGRog1TR/4N8W ILLw==; darn=zsh.org
- Arc-seal: i=1; a=rsa-sha256; t=1785124409; cv=none; d=google.com; s=arc-20260327; b=OZLAZIKWYNzbk4WdfH1aVAYeFoJIKzX06yPtCseSkLDoPsaaWq6NfqeS+ZRUZIr08X oMMVX2/uHqBsiFLg9wzNUV211f494xaQeit2Wi/zkKjhBxwnWEuwkUVyjh9PqCQnQr6Q BZzgfrO5N10X4sGX6hKXl8hidT//MsaxDwFT0hP1sYbm87jMfnxrAVH2v0hxFbNRShJ5 vJJlRxHPyPNUY/nWdDxq7bykiTrei9/XG85NuMyep4jGCumGJLLAmt0DADVC8KtmABZ4 FOzaLpPwG/oyFLP+SdTIzltuNZpQ0zaW4Bw+bdWRJnqbo2FBD1He7ymieuFoAFj4OjAg EW2A==
- Archived-at: <https://zsh.org/workers/55040>
- In-reply-to: <20260725142244.34f9f52d@opal.com>
- List-id: <zsh-workers.zsh.org>
- References: <20260724132556.6c1f059d@opal.com> <CAH+w=7YNnsxGEbJp08c3ruiJsv=0deRNZRGgQnKRF-kSL_hOeQ@mail.gmail.com> <20260725142244.34f9f52d@opal.com>
On Sat, Jul 25, 2026 at 11:22 AM J.R. Oldroyd <fbsd@xxxxxxxx> wrote:
>
> 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 ?
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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author