]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Thu Mar 5 13:06:59 CST 2009 Pekka Pessi <first.last@nokia.com>
authorMichael Jerris <mike@jerris.com>
Tue, 24 Mar 2009 15:37:43 +0000 (15:37 +0000)
committerMichael Jerris <mike@jerris.com>
Tue, 24 Mar 2009 15:37:43 +0000 (15:37 +0000)
  * run_test_nta: fixed bashism with exec
  Ignore-this: 6d034eb8fd66f6a903e3219589f62eef

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12738 d0543943-73ff-0310-b7d9-9358b9ac24b2

libs/sofia-sip/.update
libs/sofia-sip/libsofia-sip-ua/nta/run_test_nta

index f0d5040fd47deb9cd48725063a2f1abff4992e85..2ae170a80f7ec561ffba8476433a855ae732758c 100644 (file)
@@ -1 +1 @@
-Tue Mar 24 10:36:05 CDT 2009
+Tue Mar 24 10:36:48 CDT 2009
index 82ed1d0d662717ad7f8e4a5d26692b0033f79362..b706953bf4326211960a8c8d11dcde4a75f83cf2 100644 (file)
@@ -188,7 +188,7 @@ EOF
 # -g is also very nice option for named
 named -f -c $namedfile &
 pid=$!
-while ! test -r $pidfile && kill -0 $!
+while ! test -r $pidfile && kill -0 $! 2>/dev/null
 do
     sleep 1
 done
@@ -205,12 +205,10 @@ if test -r $pidfile ; then
     exit $exit
 else
     echo "$0: cannot start named (check apparmor/selinux)"
-    exec ipv6=$ipv6 $VALGRIND ./test_nta "$@"
+    ipv6=$ipv6 $VALGRIND exec ./test_nta "$@"
 fi
 
 else # not having BIND and portbind
-
-ipv6=$ipv6 $VALGRIND ./test_nta "$@"
-exit $?
+    ipv6=$ipv6 $VALGRIND exec ./test_nta "$@"
 fi