From 5aa5a22a797d3bd312dd35b2bf8fbc98e45edf22 Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Fri, 19 Aug 2011 13:55:55 +1000 Subject: [PATCH] Eventscripts - fix debugging buglet in ctdb_check_tcp_ports_ctdb() Signed-off-by: Martin Schwenke --- config/functions | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/config/functions b/config/functions index f82b353e..2d5d2792 100755 --- a/config/functions +++ b/config/functions @@ -329,7 +329,8 @@ ctdb_check_tcp_ports_ctdb () for _p ; do # process each function argument (port) _cmd="ctdb checktcpport $_p" _out=$($_cmd 2>&1) - case "$?" in + _ret=$? + case "$_ret" in 0) ctdb_check_tcp_ports_debug="\"$_cmd\" was able to bind to port" return 1 @@ -339,7 +340,7 @@ ctdb_check_tcp_ports_ctdb () continue ;; *) - ctdb_check_tcp_ports_debug="$_cmd (exited with $?) with output: + ctdb_check_tcp_ports_debug="$_cmd (exited with $_ret) with output: $_out" # assume not implemented return 127 -- 2.34.1