Fixed wrong exit code check of "kill -0".

This commit is contained in:
Alexander Barton 2004-09-06 20:22:30 +00:00
parent 2f195a07b2
commit b04a526a19
1 changed files with 2 additions and 2 deletions

View File

@ -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