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

3 comments
Comment actions Permalink

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
Comment actions Permalink

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
Comment actions Permalink

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.