All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denis Vlasenko <vda.linux@googlemail.com>
To: "Jesper Juhl" <jesper.juhl@gmail.com>
Cc: "Kaleem Khan" <linuxuser8@gmail.com>, linux-kernel@vger.kernel.org
Subject: Re: kill -9?
Date: Fri, 6 Jul 2007 19:32:08 +0200	[thread overview]
Message-ID: <200707061932.08878.vda.linux@googlemail.com> (raw)
In-Reply-To: <9a8748490707052335i4077fec6ofe8b37e2a86e3c8e@mail.gmail.com>

On Friday 06 July 2007 08:35, Jesper Juhl wrote:
> On 06/07/07, Kaleem Khan <linuxuser8@gmail.com> wrote:
> > Hello Kernel experts,
> >
> > I'd like to know whether there's a way to take some action (say
> > calling a routine) in
> > response to 'kill -9' before the process is terminated. I tend to
> > think it's against 'kill -9'
> > UNIX/Linux philosophy but still I'd like to confirm.
> >
> You can't catch/block SIGKILL (9), but you can catch SIGTERM (15 -
> what kill sends by default).
> 
> A well behaved app should catch SIGTERM and do proper cleanup before
> shutdown so that when a user does  kill <pid_of_app>  it shuts down
> cleanly.  kill -9 <pid_of_app> shouldn't normally be needed - it is
> for emergency termination of the app, which is why you can't catch it.

Tell that to Oracle. They believe that they are above any rules
and conventions. TERM does not terminate oracle db.

I tried to explain to Oracle DBAs I met how terribly wrong is it.
Quite frustrating experience.
--
vda

      reply	other threads:[~2007-07-06 17:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-06  6:21 kill -9? Kaleem Khan
2007-07-06  6:35 ` Jesper Juhl
2007-07-06 17:32   ` Denis Vlasenko [this message]

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=200707061932.08878.vda.linux@googlemail.com \
    --to=vda.linux@googlemail.com \
    --cc=jesper.juhl@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linuxuser8@gmail.com \
    /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.