posix blocked signals and pthread_kill
Posted: Sun Apr 24, 2016 12:36 pm
Hi.
I'm trying to combine information at Signal Concepts and pthread_kill.
What puzzles me a bit is what should happen when a signal send with phread_kill is blocked by the thread. What I gather from those documents, is that the behaviour should be as if the signal was sent using the kill function, that is, the signal should be delivered to any thread that does not block it, any threads waiting the signal, or be pending on the process until such thread appears. This is not very clear though, so I'm kind of worried that I'm missing something here.
I'd be keep to implement the former, as signal delivery design would be easier if 'pthread_kill' could forward any blocked signals to 'kill'. Anyone with some insight on proper interpretation of the standard on this part?
I'm trying to combine information at Signal Concepts and pthread_kill.
What puzzles me a bit is what should happen when a signal send with phread_kill is blocked by the thread. What I gather from those documents, is that the behaviour should be as if the signal was sent using the kill function, that is, the signal should be delivered to any thread that does not block it, any threads waiting the signal, or be pending on the process until such thread appears. This is not very clear though, so I'm kind of worried that I'm missing something here.
I'd be keep to implement the former, as signal delivery design would be easier if 'pthread_kill' could forward any blocked signals to 'kill'. Anyone with some insight on proper interpretation of the standard on this part?