in reply to Re^2: ppk
in thread ppk

if I have a program whose processes consistently fail to die properly, should I still kill it with 1, 2, and 15 before 9
If you have a program like that, you should rewrite it! {grin}

But yes, that's the applicable rule. "kill -9" is always the "last resort" kill.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

Replies are listed 'Best First'.
Re^4: ppk
by jplindstrom (Monsignor) on Apr 19, 2005 at 18:15 UTC
    Ok. Let me rephrase my question:

    Why?

    (I'm trying to acquire deep technical knowledge here, not cargo cult ;)

    /J

      merlyn may have a different answer, but you should generally try to tell the process to exit nicely first, because it can catch those signals and potentially do useful things on the way out. Processes are not supposed to be able to catch SIGKILL, but are just immediately terminated without the opportunity do to anything else.