LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 11-11-2013, 01:01 AM   #1
answerme
Member
 
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 01:04 AM.
 
Old 11-11-2013, 10:44 AM   #2
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Ubuntu, PopOS, Raspbian
Posts: 1,899
Blog Entries: 36

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
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
 
  


Reply



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 ! Aquarius_Girl General 24 07-16-2010 09:24 AM
Error Message "Press Ctrl+d or provide root password coolinux Linux - Newbie 5 09-01-2009 09: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 08:22 PM
ntldr missing press alt + ctrl .... ankuryu Linux - Newbie 1 05-25-2007 05:16 AM
How do you press Ctrl,Alt and shift? littertiger Programming 4 05-17-2005 03:00 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:32 PM.

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