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

Re: BUG: Zsh loses history entries since 2015



On Tue, 15 Apr 2025 at 17:24, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> On Tue, Apr 15, 2025 at 8:00 AM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> >
> > > So, should we handle EINTR?
> >
> > We do.  That's what ERRFLAG_INT signifies.
>
> Unfinished thought there:  The race condition might mean that we need
> to block interrupts rather than just handle them, so that the system
> call is not interrupted.

I was under the impression that there is no way to fully block interrupts.
As in, in some situations, the kernel just has to interrupt your system call.

For example, I could imagine that “the underlying file system disappeared”
is one of those situations where the kernel just cannot do anything
but interrupt,
otherwise your program will just hang for all eternity, waiting for
data that can never arrive.

Either way, thank you for landing the fix for the upcoming release.
As you can tell from my slow replies, I don’t really have much time to
contribute.




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