Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-26-2007, 03:09 PM   #1
Registered: Apr 2007
Posts: 38

Rep: Reputation: 15
ctrl-c to terminate a process does not work


On ubuntu gutsy, I cannot terminate a process by using ctrl-c as i used to on fedora 4. Should I be doing something to set this up? I can set up a shortcut, but to what?

For example, if i run ping, I cannot terminate it by ctrl-c. Using ctrl-z does it, but it doesnt seem as clean since the process seems to be orphaned. If i reember, ctrl-c is sigint signal while ctrl-z is something else. In the ubuntu terminal, I tried various options in edit->send signal, but none stopped the process as I wanted. They either did nothing, or killed the terminal window.
Old 12-26-2007, 03:34 PM   #2
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
Works fine here on my Kubuntu 7.10 system. What does the output of "stty -a" show? You should have "intr = ^C" somewhere in there. If it's not set do "stty intr ^C" and see if that fixes it (you may need to put it into your shell startup file). Ping should always terminate on SIGINTR, but not all programs will (some catch SIGINTR and do not exit). Make sure that the program you're trying to terminate is actually set up to temrinate on SIGINTR.


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
Ctrl+F2 & Ctrl+F7 won't work alkos333 Slackware 15 12-07-2007 04:44 AM
How 2 start a stopped process(CTRL+Z)in command prompt babu198649 Linux - Newbie 4 10-15-2007 03:53 AM
Ctrl + Alt + F# does not work mpajoh Fedora 3 01-08-2007 01:20 PM
Ctrl+C doesn't work on LiveCD bpottle Linux - Software 1 06-26-2006 06:27 PM
How to send CTRL-D to child process via a pipe? neo_in_matrix Programming 10 09-15-2005 08:09 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:49 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
Open Source Consulting | Domain Registration