labath wrote:

I kinda like signalfd(2), although the implementation makes it kinda hard to 
use in environments you don't fully control. For one, it requires that the 
signal you're listening to is blocked on *all* threads in the process. If any 
thread unblocks it for any reason, you will miss the signal. And of course, 
it's linux extension, so we'd still need a fallback for other operating 
systems. The current MainLoop implementation is basically that -- the signal 
handler writes to the pipe to wake up the reading thread (it just write a 
single byte, not the actual `siginfo` structure, though we could change that if 
it was necessary).

https://github.com/llvm/llvm-project/pull/134956
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to