TechTalkz.com Logo Ask the Expert

Go Back   TechTalkz.com Technology & Computer Troubleshooting Forums > Tech Support Archives > Linux & Opensource > Unix

Notices

forcible kill?

Unix


Reply
 
Thread Tools Display Modes
Old 15-09-2007, 11:07 AM   #1
paulwvanc@yahoo.ca
Guest
 
Posts: n/a
forcible kill?

hi

I have one process that I can't kill with "kill"
it's locked up my /dev/dsp.
Is there a "stronger" "kill"?

  Reply With Quote
Old 15-09-2007, 11:07 AM   #2
Todd H.
Guest
 
Posts: n/a
Re: forcible kill?

paulwvanc@yahoo.ca writes:

> hi
>
> I have one process that I can't kill with "kill"
> it's locked up my /dev/dsp.
> Is there a "stronger" "kill"?


kill -9 <pid>



--
Todd H.
http://www.toddh.net/
  Reply With Quote
Old 15-09-2007, 11:07 AM   #3
Michel Bardiaux
Guest
 
Posts: n/a
Re: forcible kill?

On 13 Dec 2006 02:43:40 -0600, comphelp@toddh.net (Todd H.) wrote:

>paulwvanc@yahoo.ca writes:
>
>> hi
>>
>> I have one process that I can't kill with "kill"
>> it's locked up my /dev/dsp.
>> Is there a "stronger" "kill"?

>
>kill -9 <pid>


I began using Unix in 1986, and even then it was a FAQ: how to
'kill-I-mean-it'. 20 years later, we still dont have that: kill -9
will kill the process but may leave a zombie if the parent is hung,
and some resources may not be released until the zombie has been
cleared. Which may force you to kill the parent. Which may not be
good!
  Reply With Quote
Old 15-09-2007, 11:08 AM   #4
Bill Marcum
Guest
 
Posts: n/a
Re: forcible kill?

On Wed, 13 Dec 2006 12:31:53 +0100, Michel Bardiaux
<mbardiaux@mediaxim.be> wrote:
> On 13 Dec 2006 02:43:40 -0600, comphelp@toddh.net (Todd H.) wrote:
>
>>paulwvanc@yahoo.ca writes:
>>
>>> hi
>>>
>>> I have one process that I can't kill with "kill"
>>> it's locked up my /dev/dsp.
>>> Is there a "stronger" "kill"?

>>
>>kill -9 <pid>

>
> I began using Unix in 1986, and even then it was a FAQ: how to
> 'kill-I-mean-it'. 20 years later, we still dont have that: kill -9
> will kill the process but may leave a zombie if the parent is hung,
> and some resources may not be released until the zombie has been
> cleared. Which may force you to kill the parent. Which may not be
> good!


The advice that I have often read is: if kill -9 is necessary, then
remove the defective binary file.


--
Brandy-and-water spoils two good things.
-- Charles Lamb
  Reply With Quote
Old 15-09-2007, 11:08 AM   #5
Andrew Smallshaw
Guest
 
Posts: n/a
Re: forcible kill?

On 2006-12-13, Michel Bardiaux <mbardiaux@mediaxim.be> wrote:
>
> I began using Unix in 1986, and even then it was a FAQ: how to
> 'kill-I-mean-it'. 20 years later, we still dont have that: kill -9
> will kill the process but may leave a zombie if the parent is hung,
> and some resources may not be released until the zombie has been
> cleared. Which may force you to kill the parent. Which may not be
> good!


Having zombies left lying around isn't really so much of a problem
- leave them there and they won't do much harm. When a process
goes zombie all memory and open files that it was using are released
immediately. The only thing left is an entry in the process table
holding the process's exit code.

--
Andrew Smallshaw
andrews@sdf.lonestar.org
  Reply With Quote
Old 15-09-2007, 11:08 AM   #6
Barry Margolin
Guest
 
Posts: n/a
Re: forcible kill?

In article <j0pvn25klp62pf9470jd864s1hbilaos9b@4ax.com>,
Michel Bardiaux <mbardiaux@mediaxim.be> wrote:

> On 13 Dec 2006 02:43:40 -0600, comphelp@toddh.net (Todd H.) wrote:
>
> >paulwvanc@yahoo.ca writes:
> >
> >> hi
> >>
> >> I have one process that I can't kill with "kill"
> >> it's locked up my /dev/dsp.
> >> Is there a "stronger" "kill"?

> >
> >kill -9 <pid>

>
> I began using Unix in 1986, and even then it was a FAQ: how to
> 'kill-I-mean-it'. 20 years later, we still dont have that: kill -9
> will kill the process but may leave a zombie if the parent is hung,
> and some resources may not be released until the zombie has been
> cleared. Which may force you to kill the parent. Which may not be
> good!


Zombies never consume any resources except a process table slot that
holds the termination status. A process doesn't become a zombie until
all its resources have been released and the only thing it's hanging
around for is its parent to call one of the wait() functionx.

--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***
  Reply With Quote
Old 15-09-2007, 11:08 AM   #7
Michael Tosch
Guest
 
Posts: n/a
Re: forcible kill?

Bill Marcum wrote:
> On Wed, 13 Dec 2006 12:31:53 +0100, Michel Bardiaux
> <mbardiaux@mediaxim.be> wrote:
>> On 13 Dec 2006 02:43:40 -0600, comphelp@toddh.net (Todd H.) wrote:
>>
>>> paulwvanc@yahoo.ca writes:
>>>
>>>> hi
>>>>
>>>> I have one process that I can't kill with "kill"
>>>> it's locked up my /dev/dsp.
>>>> Is there a "stronger" "kill"?
>>> kill -9 <pid>

>> I began using Unix in 1986, and even then it was a FAQ: how to
>> 'kill-I-mean-it'. 20 years later, we still dont have that: kill -9
>> will kill the process but may leave a zombie if the parent is hung,
>> and some resources may not be released until the zombie has been
>> cleared. Which may force you to kill the parent. Which may not be
>> good!

>
> The advice that I have often read is: if kill -9 is necessary, then
> remove the defective binary file.
>


This is certainly a good advice :-)

But the program can hang because of another reason: a hung I/O device.
In this case a "kill -9" works if the kernel device driver supports
an interrupt, otherwise even "kill -9" won't work.

The culprit then is either a faulty kernel device driver or the
"hardware" (which can be virtual i.e. represented by another
software layer).

--
Michael Tosch @ hp : com
  Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Please, don't kill my WiFi! John Windows Mobile 26 01-09-2007 07:30 AM
Was: Kill (...) Now: Guy Macons Resume anon@anon.com Slackware Linux 0 29-08-2007 07:48 PM
Kill A Thread John A. Bailo Windows Server 2003 2 28-08-2007 10:13 AM
Kill Switch for XP? Alias Windows XP 20 27-08-2007 11:49 PM
How to kill a Lion !!!, Check it out !!! Strider Fun & Leisure 0 19-11-2005 01:44 PM


< Home - Windows Help - MS Office Help - Hardware Support >


New To Site? Need Help?

All times are GMT +5.5. The time now is 09:29 AM.


vBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO
Copyright © 2005-2010, TechTalkz.com. All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional