All of lore.kernel.org
 help / color / mirror / Atom feed
From: Fabio M. Di Nitto <fdinitto@redhat.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] bug in cman/init.d/cman.in?
Date: Mon, 29 Aug 2011 14:06:09 +0200	[thread overview]
Message-ID: <4E5B80B1.4020708@redhat.com> (raw)
In-Reply-To: <24E144B8C0207547AD09C467A8259F75377CB457@lisa.maurer-it.com>

On 08/29/2011 10:44 AM, Dietmar Maurer wrote:
> * do not overwrite global return status 'rtrn' - use local keyword
> 
> Index: new/cman/init.d/cman.in
> ===================================================================
> --- new.orig/cman/init.d/cman.in	2010-12-02 07:19:35.000000000 +0100
> +++ new/cman/init.d/cman.in	2010-12-23 11:32:12.000000000 +0100
> @@ -46,7 +48,7 @@
>  status()
>  {
>  	pid=$(pidof $1 2>/dev/null)
> -	rtrn=$?
> +	local rtrn=$?
>  	if [ $rtrn -ne 0 ]; then
>  		echo "$1 is stopped"
>  	else
> 
> 

Is this purely semantic or are you actually fixing a bug?

Reading the code, it doesn't look like it makes any difference... but I
might not see it right.

Fabio



  reply	other threads:[~2011-08-29 12:06 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-29  8:44 [Cluster-devel] bug in cman/init.d/cman.in? Dietmar Maurer
2011-08-29 12:06 ` Fabio M. Di Nitto [this message]
2011-08-29 13:14   ` Dietmar Maurer
2011-08-29 13:20     ` Fabio M. Di Nitto
2011-08-29 13:26       ` Dietmar Maurer
2011-08-30  9:46         ` Fabio M. Di Nitto
2011-08-31  9:07           ` Dietmar Maurer
2011-08-31  9:12             ` Fabio M. Di Nitto
2011-08-31 10:33               ` Dietmar Maurer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4E5B80B1.4020708@redhat.com \
    --to=fdinitto@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.