From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 30365 invoked from network); 1 Mar 1999 18:19:58 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 1 Mar 1999 18:19:58 -0000 Received: from earth.terran.org (bryan@earth.terran.org [216.39.144.215]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id NAA05080; Mon, 1 Mar 1999 13:17:11 -0500 Received: from localhost (bryan@localhost) by earth.terran.org (8.8.7/8.8.9) with ESMTP id KAA01828; Mon, 1 Mar 1999 10:17:11 -0800 Date: Mon, 1 Mar 1999 10:17:11 -0800 (PST) From: "B. James Phillippe" To: Alpha Linux cc: Red Hat Subject: Re: Dead jobs In-Reply-To: <19990301173135.19071.rocketmail@send205.yahoomail.com> Message-ID: Organization: terran.org/darkforest.org X-Subliminal-Message: Use Linux MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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