Date: Fri, 13 Sep 2002 16:36:11 -0300 (ART) From: Fernando Gleiser <fgleiser@cactus.fi.uba.ar> To: Peter Leftwich <Hostmaster@Video2Video.Com> Cc: FreeBSD LIST <FreeBSD-Questions@FreeBSD.Org> Subject: Re: kill(1) Message-ID: <20020913162819.Y2575-100000@cactus.fi.uba.ar> In-Reply-To: <20020913125700.P16109-100000@earl-grey.cloud9.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 13 Sep 2002, Peter Leftwich wrote: > Uh oh. I never read the kill manpage. I've been using an alias of kill > which always runs "kill -9" -- is that bad? Is there a default value sent Yes. Using always 'kill -9' is bad, mmmmkay? SIGKILL (9) can't be traped or ignored so the process "just dies". It is intended as a last-resort by the sysadmin, to kill a runaway process, but you have to give the process a chance to say its pray^W^W^W do the proper cleanup before terminating. If you kill -9 a process, it won't clean up and you'll get stale lock files, undeleted temp files and other nasties lurking around. Read the chapter on signals on any decent book on Unix programming for a more detailed explanation of why kill -9 is the last resort. > to the signal, if kill has no flag? e.g. `kill 2445345` vs `kill -9 244534` by default, kill(1) sends a SIGTERM to the process. So kill <pid> and kill -15 <pid> and kill -TERM <pid> are all the same. Hope his helps Fer > > -- > Peter Leftwich > President & Founder > Video2Video Services > Box 13692, La Jolla, CA, 92039 USA > +1-413-403-9555 > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020913162819.Y2575-100000>