LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   application not getting terminating when press ctrl +c (https://www.linuxquestions.org/questions/programming-9/application-not-getting-terminating-when-press-ctrl-c-4175484169/)

answerme 11-11-2013 01:01 AM

application not getting terminating when press ctrl +c
 
Hi All
I have kernel 2.6.23 on board powerpc MPC8641, I am running simple thread application that is continuously running in while loop with sleep of 5 second .But if i want to terminate or kill application with keyboard(cltr+c) its not getting terminated .But when I run same application on my PC desktop its getting terminating/kill.

sag47 11-11-2013 10:44 AM

Normally ctrl+c sends a SIGINT to the process which stops it. It sounds like whatever shell you're using on the powerpc is not sending that signal. Either that or your application is not properly handling SIGINT and your PC OS (which you haven't mentioned what or what version) handles the termination of the application.

You should implement SIGINT handling in your application and that should resolve it.

SAM


All times are GMT -5. The time now is 09:21 PM.