IMO you should NEVER use SIGKILL to kill off processes. SIGTERM is a perfect signal for this.
Allow processes to make a decision whether they should cleanup before terminating, or in some cases - ignore the kill. One of my pet peeves is for people to blindly use -9! I tell my support people at the office to never -9 *MY* programs always use no parameters (default -15 SIGTERM), THEN use -9 if it hasnt died. This has the advantage that it's atually less keystrokes, but old habits die hard. #!/bin/sh # nice(r) kill kill $pid #Put it in the background so we dont hafta wait #This only send -9 if the $pid is still there... (sleep 3; kill -0 $pid > /dev/null 2>&1 && kill -9 $pid) & ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, February 07, 2003 8:17 AM Subject: Re: [Mjpeg-users] is it really necessary to kill -9 in glav? ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Mjpeg-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/mjpeg-users