On Thu Jan 25 17:31:14 2024 +0000, Jinoh Kang wrote:
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.
rt_tgsigqueueinfo looks interesting to me, thanks.
Anyway, in the view of more generic discussion it looks like it makes more sense to introduce variable sized context transfers (and maybe some other bits of generic xstate support first).