All of lore.kernel.org
 help / color / mirror / Atom feed
* [Cluster-devel] bug in cman/init.d/cman.in?
@ 2011-08-29  8:44 Dietmar Maurer
  2011-08-29 12:06 ` Fabio M. Di Nitto
  0 siblings, 1 reply; 9+ messages in thread
From: Dietmar Maurer @ 2011-08-29  8:44 UTC (permalink / raw)
  To: cluster-devel.redhat.com

* 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




^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2011-08-31 10:33 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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.