From: Justin Hibbits <jrh29@po.cwru.edu>
To: Robert Love <rml@tech9.net>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Destroying processes
Date: Wed, 11 Dec 2002 14:30:49 -0500 [thread overview]
Message-ID: <20021211193049.GH147@lothlorien.cwru.edu> (raw)
In-Reply-To: <1039634515.833.57.camel@phantasy>
On Wed, Dec 11, 2002 at 02:21:55PM -0500, Robert Love wrote:
> Cases where kill -9 fail to work are cases where it is supposed to fail.
>
> You cannot kill zombies, that would break POSIX compliance when the
> parent's called wait. If you task's parents are not properly calling
> wait() that is an application bug. If the parent exits, the children
> should be reparented to init and init will reap them via wait().
>
> You also cannot kill tasks that are sleeping (D in ps/top). They may
> hold a semaphore or otherwise be in the middle of a critical section.
> Killing them would be bad bad bad.
>
> Robert Love
Ok, thanks for clearing that up. My reasoning for wanting this is because a CD
I had mounted with cdfs was screwed up in the mount (file sizes were
misreported, etc), and I couldn't umount it, even tho I could eject it with
cdrecord -eject. The umount process then went to sleep (with teh 'D' showing
in ps/top), and I couldn't use that drive again until after a reboot. That's
when I got the idea that I should be able to destroy the process completely,
annihilating everything with it, destroying any connections it has with the
kernel, etc. I guess it's a bad idea, given your statement :P
Anyway, thanks for the reply,
Justin
--
Registered Linux user 260206
"One World, One Web, One Program"
- Microsoft Promo Ad
"Ein Volk, Ein Reich, Ein Fuhrer"
- Adolf Hitler
I'm not paranoid. They really *are* out to get me!
next prev parent reply other threads:[~2002-12-11 19:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-11 19:01 Destroying processes Justin Hibbits
2002-12-11 19:21 ` Robert Love
2002-12-11 19:30 ` Justin Hibbits [this message]
2002-12-11 19:38 ` Robert Love
2002-12-11 19:24 ` Richard B. Johnson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20021211193049.GH147@lothlorien.cwru.edu \
--to=jrh29@po.cwru.edu \
--cc=linux-kernel@vger.kernel.org \
--cc=rml@tech9.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.