good for merge

On Mon, 2009-11-30 at 21:05 +0100, Fabio M. Di Nitto wrote:
> totally my fault, I didn“t notice this issue before. Using killall is
> bad as it would kill also the init script itself. This patch address the
> problem.
> 
> Fabio
> plain text document attachment (corosync_init_fix_stop.diff)
> Index: init/generic.in
> ===================================================================
> --- init/generic.in   (revision 2554)
> +++ init/generic.in   (working copy)
> @@ -93,8 +93,10 @@
>  
>  stop()
>  {
> +     ! status $prog > /dev/null 2>&1 && return
> +
>       echo -n "Signaling $desc ($prog) to terminate: "
> -     killall -TERM $prog > /dev/null 2>&1
> +     kill -TERM $(pidof $prog) > /dev/null 2>&1
>       success
>       echo
>  
> _______________________________________________
> Openais mailing list
> [email protected]
> https://lists.linux-foundation.org/mailman/listinfo/openais

_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais

Reply via email to