All of lore.kernel.org
 help / color / mirror / Atom feed
From: Robert Love <rml@tech9.net>
To: Justin Hibbits <jrh29@po.cwru.edu>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Destroying processes
Date: 11 Dec 2002 14:21:55 -0500	[thread overview]
Message-ID: <1039634515.833.57.camel@phantasy> (raw)
In-Reply-To: <20021211190132.GF147@lothlorien.cwru.edu>

On Wed, 2002-12-11 at 14:01, Justin Hibbits wrote:

> Is there a system call that would destroy a process?  Sometimes I end up with
> zombie processes, other times I end up with a process attaching to a device
> driver, and hanging, so I want to be able to completely destroy the
> process...image, file handle, driver hooks, everything.  If there isn't one,
> and noone wants to do it, I'll gladly do it (may take a few weeks tho).  I just
> don't wanna do what someone else has already done.

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


  reply	other threads:[~2002-12-11 19:15 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 [this message]
2002-12-11 19:30   ` Justin Hibbits
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=1039634515.833.57.camel@phantasy \
    --to=rml@tech9.net \
    --cc=jrh29@po.cwru.edu \
    --cc=linux-kernel@vger.kernel.org \
    /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.