On Wed Jan 24 18:18:03 2024 +0000, Jinoh Kang wrote:
How about `sigqueue(3)` from POSIX.2001?
We can use `sigqueue(3)` if available to send a hint whether to send the context the first time.
Note that the signal argument (sival) will purely work as a hint. Even if the server didn't initially request client context via SIGUSR1, another thread might call NtGetContextThread() in the meanwhile and make `select()` return `STATUS_MORE_PROCESSING_REQUIRED`.