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

Re: The curious incident of the feep in the night-time



On Tue, Apr 27, 2021 at 2:35 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> [...]  The reference to "what
> interrupt set" seems to imply that it is sendbreak() that should be
> assigning lastval, because it is simulating a SIGINT and the handler
> for SIGINT assigns lastval directly.
>
> The other question is, to what should lastval be set?

With a quick grep for integer assignments to lastval, the shell
appears to use only 1, 127, or 128+SIGxx.  Unless someone knows of a
different circumstance, it appears sendbreak() should probably just
continue to use lastval = 1.




Messages sorted by: Reverse Date, Date, Thread, Author