Answer the question
In order to leave comments, you need to log in
How to make SIGINT caught only by the main thread of the process?
The daemon in the main thread starts n children, while there is an overridden SIGINT handler. Everything seems to be fine, but when SIGINT is sent by the user (ctrl + c), a random thread catches it. And it is necessary that always only the main thread catches the signal in order to correctly terminate the daemon. Tell me what to google, where to dig on this issue?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question