On Thu Jan 25 01:55:19 2024 +0000, Torge Matthies wrote:
There's `SYS_rt_tgsigqueueinfo` on Linux, but that's of course not at all portable.
It seems like Linux and FreeBSD are the only platforms Wine can direct signals to specific threads (`send_thread_signal`).
If I'm (hopefully) not mistaken again, we can use rt_tgsigqueueinfo(2) on Linux to send flags while keeping the old path (always send context) for FreeBSD.
Furthermore, if in any case rt_tgsigqueueinfo(2) is not be available (e.g., seccomp, ancient kernel), we can always fall back to full context transmission.