25 Jan
2024
25 Jan
'24
5:31 p.m.
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. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/4914#note_59019