Help answer threads with 0 replies.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 11-11-2013, 02:01 AM   #1
Registered: Apr 2008
Posts: 97

Rep: Reputation: 24
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.

Last edited by answerme; 11-11-2013 at 02:04 AM.
Old 11-11-2013, 11:44 AM   #2
Senior Member
Registered: Sep 2009
Location: Orange County, CA
Distribution: Kubuntu x64, Raspbian, CentOS
Posts: 1,857
Blog Entries: 36

Rep: Reputation: 457Reputation: 457Reputation: 457Reputation: 457Reputation: 457
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.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
BOOTMGR is missing, Press Ctrl+Alt+Del to restart ! TheIndependentAquarius General 24 07-16-2010 10:24 AM
Error Message "Press Ctrl+d or provide root password coolinux Linux - Newbie 5 09-01-2009 10:20 AM
[SOLVED] How do you change the rows and columns in screen when you press ctrl-alt-f1? kike_coello Programming 3 07-13-2009 09:22 PM
ntldr missing press alt + ctrl .... ankuryu Linux - Newbie 1 05-25-2007 06:16 AM
How do you press Ctrl,Alt and shift? littertiger Programming 4 05-17-2005 04:00 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:42 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration