[linux-l] Weltzeituhr

Danijel Tasov belug at ml.rbfh.de
Do Nov 2 20:00:50 CET 2006


This month's Useless Use of kill -9 award goes to...

Frank Reker wrote:
>        kill -9 "$i"

No no no.  Don't use kill -9.

It doesn't give the process a chance to cleanly:

1) shut down socket connections
2) clean up temp files
3) inform its children that it is going away
4) reset its terminal characteristics

and so on and so on and so on.

Generally, send 15, and wait a second or two, and if that doesn't work,
send 2, and if that doesn't work, send 1.  If that doesn't, REMOVE THE
BINARY because the program is badly behaved!

Don't use kill -9.  Don't bring out the combine harvester just to tidy
up the flower pot.


Frei nach Randal L. Schwartz ;)

                                        Danijel Tasov
                                        <dt at vosat.de>
-- 
I don't believe I've ever cuddled my elses.
             -- Larry Wall in <199806221550.IAA07171 at wall.org>



Mehr Informationen über die Mailingliste linux-l