Re: Dead jobs


B. James Phillippe (bryan@terran.org)
Mon, 1 Mar 1999 10:17:11 -0800 (PST)


On Mon, 1 Mar 1999, Jacek Perry wrote:

> Anyway I have a quick question. For some reason I can't allways kill
> jobs. Especially if they are running in Xwindows. For instance when
> my Netscape hangs I can't kill it. I go to a shell and type ps. Then
> I issue command kill pid. However that doesn't kill it. When I do ps

Always try kill -9 pid if plain kill (which is kill -15, or "TERM") doesn't
work. kill -9 ("KILL") can't be ignored or caught, but it doesn't give the
process a chance to clean up after itself.

> again.... the netscape is still there. Next to the process I see D
> which I assume stands for dead. But when I go back to Xwindows there
> it is Netscape all hanged and filling up my screen. The only way I am
> able to get rid of this problem is by rebooting the system. However
> this is Linux there has to be better way to handle that!

The "D" state means the process is in uninterruptible sleep.
Uninterruptible processes can't be interrupted by signals, which is why you
can't kill it; they can only be woken by the kernel. Normally this only
happens when the process is blocked in a device driver waiting on hardware.

-bp

--
B. James Phillippe		. bryan@terran.org
Software Engineer, WGT Inc.	. http://www.terran.org/~bryan

-- 
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com



This archive was generated by hypermail 2.0b3 on Mon Mar 01 1999 - 11:00:17 PST