LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-11-2005, 02:53 PM   #1
DJOtaku
Member
 
Registered: Oct 2004
Location: USA
Distribution: Fedora 25;CentOS 7; Kubuntu; Debian
Posts: 860

Rep: Reputation: 37
When a process just won't die


Last night I started up gmplayer after [probably] not closing down mplayer correctly. (All done from the command line) So mplayer came up complaining about lacking some library and the panel was a blacked-out shadow of the panel. I couldn't click anywhere on the display area or panel. When I click "X" to close it, it doesn't close. So then I type:

Code:
ps
and get a list of processes. gmplayer is 1473 and mplayer isn't on there.

So I type:

Code:
kill 1473
Nothing happens!

Code:
ps
It's still there. I tried this as my user name because that's how I started it up. I would try it as root, but when I type

Code:
ps
as root, it doesn't show up there so I'm not sure what consquences would come from trying it as root. I'm sure I could fix this by rebooting, but I would like to learn how to do this for the future.

Thanks,
 
Old 05-11-2005, 03:05 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 267Reputation: 267Reputation: 267
If kill doesn't work.. you have to try a kill -9 to force the kill with no questions asked.
 
Old 05-11-2005, 03:15 PM   #3
zackarya
Member
 
Registered: Jul 2003
Distribution: OpenSuse 10, Debian
Posts: 152

Rep: Reputation: 30
Hi DJOtaku, you should try xkill. Makes it much easier to kill random windows. As fas as ps, try ps aux (man ps to find out what these are). It'll show up then. When you try to kill something, there are different levels of how "cleanly" to kill it. So for example if I try kill -1 someprocess
It will try to kill it but not at the sake of leaving something undone. ie closing files, returning resources, etc. Sometimes though it can't do it so you have to just kill it anyway. You can do that with kill -9 someprocess. Of course there's still 2-8 in between those two but I can't remember right off how they are seperated. Just man kill. You should also look at killall as it does a cleaner job of killing a process in general. Hope that helps.
 
Old 05-11-2005, 03:46 PM   #4
DJOtaku
Member
 
Registered: Oct 2004
Location: USA
Distribution: Fedora 25;CentOS 7; Kubuntu; Debian
Posts: 860

Original Poster
Rep: Reputation: 37
thanks you two. That killed it right away. (kill -9)
 
  


Reply


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
the process that would not die -- can't kill fdisk Furlinastis Slackware 12 10-30-2005 03:28 PM
why my script die itself when I try to kill a process?? jaimese Linux - Newbie 4 10-27-2005 06:50 AM
Die, lotus notes, die (sorry for ranting) slackist General 10 01-10-2005 11:42 AM
The process that WOULDN'T DIE! BertBert Linux - Software 6 04-27-2004 10:13 AM
process wont die Axion Linux - Software 5 01-01-2004 02:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:49 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