|
From: | Paul Eggert |
Subject: | Re: Some experience with the igc branch |
Date: | Thu, 26 Dec 2024 15:29:29 -0800 |
User-agent: | Mozilla Thunderbird |
On 2024-12-26 07:23, Eli Zaretskii wrote:
From: Helmut Eller <eller.helmut@gmail.com> I thought deliver_process_signal was there to forward signals to the main thread but you certainly know better what it does and doesn't.Actually, we need Paul Eggert to chime in, because he knows much more about this than I do. We have arrangements for when a signal is delivered to a thread, but I think Paul said this should rarely if ever happen.
Helmut's right: deliver_process_signal arranges for the handler to be called in the main thread even if the thread was delivered to some other thread.
And to some extent you're right, too, on GNU/Linux, where historically this rarely happened unless the signal was blocked in the main thread. That part of the Linux kernel has evolved, though, and I don't know whether this is still true. However, whether it's true shouldn't affect the correctness of deliver_process_signal.
[Prev in Thread] | Current Thread | [Next in Thread] |