Am 20.12.2021 um 09:38 schrieb Giovanni Mascellani gmascellani@codeweavers.com:
Hi,
On 17/12/21 23:02, Chip Davis wrote:
This won't work on platforms other than Linux, and not just because only Linux has the __NR_* symbols for syscall numbers.
Thanks for the feedback. The idea of that call is to immediately exit the thread without further cleanup, but signalling a clean exit. I don't think there is a way to do that portably. Which are the "supported" platforms I should care about for a non-portable patch to be accepted?
You'd at least need #ifdefs to make sure other platforms compile, even if the kind of graceful exit you are trying to ensure doesn't work.