[libc-commits] [libc] [libc] End a semaphore wait with EINTR when a signal handler runs (PR #236969)
Mike Lothian via libc-commits
libc-commits at lists.llvm.org
Fri Oct 30 08:54:12 PDT 2026
FireBurn wrote:
I updated the PR. It adds `FutexSigAction`, applies the comment wording, uses a lambda in the test, and keeps the extra test dependencies in sem_wait_test only. sem_wait_test, sem_init_test and semaphore_test pass locally
On the design question: I kept the opt-in argument, because raw_mutex, raw_rwlock, CndVar, callonce and thread all rely on the wait restarting and would each need a retry wrapper if wait() always returned EINTR. If you prefer that I can switch to it, but it touches those callers, so it would be better as its own change
https://github.com/llvm/llvm-project/pull/236969
More information about the libc-commits
mailing list