I'm programing a multithreaded program that needs to intercept system signals (such as SIGINT). I would like to know if there is a normalized way to "catch" these signals like:
- A Signal is sent, may any thread receive it or only the main() one ?
- Is there a Posix rule or a programming idiom that specifies how to handle this ?