Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 9th August 2008, 12:46 AM
Jongi Offline
Registered User
 
Join Date: Oct 2005
Posts: 1,952
Can't kill processes

I have found of late that the kill command in a terminal is not able to kill/terminate running processes. Is there now a stronger command? Or is there a fault somewhere?

Code:
[root@Jongi-Laptop ~]# kill 4024
[root@Jongi-Laptop ~]# ps aux | grep opera
jongi     4024 15.9  5.2 206256 108676 ?       Rl   00:50   8:26 /usr/lib/opera/9.51/opera
root      6961  0.0  0.0   4124   712 pts/1    S+   01:43   0:00 grep opera
[root@Jongi-Laptop ~]# kill 4024
[root@Jongi-Laptop ~]# kill 4024
[root@Jongi-Laptop ~]# kill 4024
[root@Jongi-Laptop ~]# kill 4024
[root@Jongi-Laptop ~]# ps aux | grep opera
jongi     4024 17.9  5.2 206256 108676 ?       Rl   00:50   9:44 /usr/lib/opera/9.51/opera
[root@Jongi-Laptop ~]# ps aux | grep opera
jongi     4024 18.1  5.2 206256 108676 ?       Rl   00:50   9:50 /usr/lib/opera/9.51/opera
[root@Jongi-Laptop ~]# kill 4024
[root@Jongi-Laptop ~]# kill 4024
[root@Jongi-Laptop ~]# ps aux | grep opera
jongi     4024 18.2  5.2 206256 108676 ?       Rl   00:50   9:55 /usr/lib/opera/9.51/opera
root      7032  0.0  0.0   4120   676 pts/1    R+   01:44   0:00 grep opera
EDIT: To clarify, it will kill most. But there are some programs it just cannot kill. I am running KDE4(.099) and even a Ctrl-ESC doesn't help.
__________________
Desktop (64-bit) - F12, Debian Sid, OpenSUSE 11.2, ArchLinux
Reply With Quote
  #2  
Old 9th August 2008, 12:50 AM
PabloTwo's Avatar
PabloTwo Online
"Registered User" T-Shirt Winner
 
Join Date: Mar 2007
Location: Seville, FL
Posts: 5,119
There is a more potent variant of the kill command that will usually handle those stubborn processes that won't die with the regular kill command. Try:

kill -KILL <pid>
Reply With Quote
  #3  
Old 9th August 2008, 01:15 AM
sidebrnz's Avatar
sidebrnz Online
Registered User
 
Join Date: Oct 2007
Location: Freedonia
Age: 63
Posts: 2,104
The kill command sends a signal to the process. In general, what that process does with the signal depends on both the process and signal. There is, however, one signal that means "Die. right now. No excuses." If that's what you want, try this:

kill -9 XXXX

and process XXXX will die the death right then. Do not, under any circumstances try doing that with process #1, as that's init, and will kill all its children, which means your system will stop.
__________________
Registered Linux user #470359 and permanently recovered BOFH.

Any advice in this post is worth exactly what you paid for it.

Last edited by sidebrnz; 9th August 2008 at 01:31 AM. Reason: typo correction
Reply With Quote
  #4  
Old 9th August 2008, 01:30 AM
Jongi Offline
Registered User
 
Join Date: Oct 2005
Posts: 1,952
That's what I needed to kill a process with no issue

kill -9 xxxx

thanks
__________________
Desktop (64-bit) - F12, Debian Sid, OpenSUSE 11.2, ArchLinux
Reply With Quote
  #5  
Old 9th August 2008, 02:56 AM
forkbomb's Avatar
forkbomb Offline
Registered User
 
Join Date: May 2007
Location: U.S.
Posts: 4,852
Just to clarify:
The normal kill command without arguments really isn't all that "violent" despite what we'd guess judging by the name. Normal kills are really more like friendly requests than orders; apps can be programmed to trap normal kills and - frankly - ignore them.

That's why stuff can't always be killed. It's not a Linux malfunction - it's an app that's been programmed to trap kills.
__________________
- Tom
"What is freedom? To have the will to be responsible for one's self." - Stirner
Reply With Quote
Reply

Tags
kill, processes

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
max processes alin19 Using Fedora 6 12th November 2008 10:50 AM
How would I kill all ssh processes? DaveMu Using Fedora 2 23rd March 2007 08:59 PM
See VNC Processes boxxa Using Fedora 7 22nd December 2006 10:53 PM
oom-killer: How to set priorities to kill processes guarriman Servers & Networking 1 31st January 2006 01:37 PM
How to kill processes when Linux hangs scorbel Using Fedora 4 25th January 2006 03:03 PM


Current GMT-time: 00:10 (Monday, 20-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat