mirror of
				https://github.com/osmarks/ngircd.git
				synced 2025-10-26 03:27:38 +00:00 
			
		
		
		
	Fixed wrong exit code check of "kill -0".
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Alexander Barton
					Alexander Barton