commit b04a526a1926a7990d11d8c37c413abaedacba10 from: Alexander Barton date: Mon Sep 06 20:22:30 2004 UTC Fixed wrong exit code check of "kill -0". commit - 2f195a07b2d58bed5335b2a04cc154d929a7aba7 commit + b04a526a1926a7990d11d8c37c413abaedacba10 blob - 1b966bab04223d4dc0754342aad029f69f0b20ac blob + f732283dee39a8fa35cdde9d9b6a3f5f1605c8b5 --- src/testsuite/stop-server.sh +++ src/testsuite/stop-server.sh @@ -1,6 +1,6 @@ #!/bin/sh # ngIRCd Test Suite -# $Id: stop-server.sh,v 1.11 2004/09/04 19:14:46 alex Exp $ +# $Id: stop-server.sh,v 1.12 2004/09/06 20:22:30 alex Exp $ [ -z "$srcdir" ] && srcdir=`dirname $0` @@ -17,7 +17,7 @@ kill $pid > /dev/null 2>&1 || exit 1 # waiting ... for i in 1 2 3 4 5; do kill -0 $pid > /dev/null 2>&1; r=$? - if [ $r -eq 0 ]; then + if [ $r -ne 0 ]; then echo " ok". exit 0 fi