Subject: Re: kill in bash script
To: None <netbsd-help@netbsd.org>
From: James K. Lowden <jklowden@schemamania.org>
List: netbsd-help
Date: 11/13/2002 19:26:47
On Wed, 13 Nov 2002 09:36:00 -0800, Bill Schoolcraft <bill@linuxcare.com>
wrote:
> #!/bin/sh
> #
> for i in `ps -auxw|grep netscape|grep -v grep|awk '{print $2}'`; do kill
> -9 $i ; done

Not that this was the poster's question precisely, but I'm surprised to
see so many flavors of "kill -9".  I always try HUP first (even though I
know TERM is gentler).  And I have the same netscape problem, which only
-9 resolves.  

Isn't "kill -9" apt to leave bits of resources unfreed or have other
undesirable side effects?  

--jkl