[ale] Expect?

Lightner, Jeff jlightner at water.com
Thu Feb 10 08:55:30 EST 2011


When you don't specify a signal then it does -15 (SIGTERM) by default.  That is why I said to start with "kill <PID>" - it is the same as "kill -15 <PID>.

I suggested "kill -1 <PID>" as next thing to try as there are some processes that won't die on SIGTERM (typically the user's shells).

But we're in agreement - "kill -9 <PID>" should be last resort.

-----Original Message-----
From: ale-bounces at ale.org [mailto:ale-bounces at ale.org] On Behalf Of David Ritchie
Sent: Thursday, February 10, 2011 2:01 AM
To: Atlanta Linux Enthusiasts
Subject: Re: [ale] Expect?

On Wed, Feb 9, 2011 at 2:40 PM, Lightner, Jeff <jlightner at water.com> wrote:
>
> Try doing a progressive kill (e.g.  kill <PID>, use ps to see if it went
> away, if not kill -1 <PID>, check with ps again and finally "kill -9
> <PID>" if that didn't kill it.
>

Actually, kill -15 is the preferred signal with which to start. It
indicates to a well written program that it is
to shut itself down and exit immediately. Be patient when using this -
it may take a bit of time to shut things
down correctly. kill -9 is a last resort, as it and SIGSTOP are not
trappable by the executable, so there
is no chance that any cleanup can occur. Other signals may do similar
functions, or may be ignored completely,
dependent on the whim of the programmer.

Best regards,
Dave Ritchie

_______________________________________________
Ale mailing list
Ale at ale.org
http://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
 
Proud partner. Susan G. Komen for the Cure.
 
Please consider our environment before printing this e-mail or attachments.
----------------------------------
CONFIDENTIALITY NOTICE: This e-mail may contain privileged or confidential information and is for the sole use of the intended recipient(s). If you are not the intended recipient, any disclosure, copying, distribution, or use of the contents of this information is prohibited and may be unlawful. If you have received this electronic transmission in error, please reply immediately to the sender that you have received the message in error, and delete it. Thank you.
----------------------------------



More information about the Ale mailing list