Signal sent by the stopping button

Answered

Hi,

I have to catch the stopping signal to close some socket and threads, but I don't know what signal is sent when I press the "stop button". So anybody has an idea of what is happening behind this fancy button ?

Thanks

0
3 comments

Hi Remi.

If the process was launched without debugger, then CLion sends SIGTERM, waits one second and then sends SIGKILL.

If the process was launched under debugger, then it is the debugger who handles the process shutdown, not CLion.

0

Please provide a button option for SIGINT. I want to end the program cleanly and there seems to be no way of doing it.

0

Hi! Here is the related issue: https://youtrack.jetbrains.com/issue/CPP-3067. Feel free to comment or upvote. Please also read the comments.

2

Please sign in to leave a comment.