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

Re: BUG: Zsh loses history entries since 2015



On Mon, May 5, 2025 at 3:31 AM Michael Stapelberg
<stapelberg+zsh@xxxxxxxxxx> wrote:
>
> I was under the impression that there is no way to fully block interrupts.

Anything other than the SIGKILL and SIGSTOP signals can be delayed or ignored.

> 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.

That can in fact happen if you ignore the signals related to I/O errors.

The other side of the equation is that after a signal is handled, an
interrupted system call can be caused to either (attempt to) resume
where it left off, or to return with error state.




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