anshithayeruva wrote: Thanks for the suggestion @labath. I've added a unit test in sigwait_test.cpp that uses setitimer to schedule SIGALRM after 10ms, verifying that sigwait blocks until the signal is delivered. https://github.com/llvm/llvm-project/pull/237572