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

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



The plot thickens.

An actual interrupt signal causes getbyte() to behave as if no
keystroke were entered, at which point it discovers that errno ==
EINTR and the top level is restored without passing through the code
that calls handlefeep().  Conversely, sendbreak() eventually returns
whatever keystroke(s) initiated the widget, so the simulated interrupt
is treated as a failed widget and (when lastval is nonzero) causes the
feep.  This is probably why we didn't notice the missing feep before,
because ^G and ^C accidentally behaved the same most of the time.

Still pondering what to do about this.




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