[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sqlite memory allocation and async signal safety
From: |
Po Lu |
Subject: |
Re: sqlite memory allocation and async signal safety |
Date: |
Thu, 24 Mar 2022 19:51:04 +0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) |
Eli Zaretskii <eliz@gnu.org> writes:
> It depends on the signal. Look at the signal handlers we install.
> For SIGIO, this is the handler:
>
> void
> handle_input_available_signal (int sig)
> {
> pending_signals = true;
>
> if (input_available_clear_time)
> *input_available_clear_time = make_timespec (0, 0);
> }
>
> and the flag is pending_signals.
Thanks. From what I can tell, it's checked in maybe_quit (and some
other places such as unblock_input), and it shouldn't require input to
be blocked around calls to sqlite functions.
The other signal handlers seem fine too.