[nsd-users] nsdc restart falls into semi-infinite loop

Joerg Sonnenberger joerg at britannica.bec.de
Fri Jul 24 06:33:08 UTC 2009


On Fri, Jul 24, 2009 at 01:41:48PM +0900, Koh-ichi Ito wrote:
> *** /pub/nsd-3.2.2/sbin/nsdc	Fri Jul 24 12:29:19 2009
> --- /tmp/nsdc	Fri Jul 24 13:05:53 2009
> ***************
> *** 199,205 ****
>   			fi
>   
>   			# really stopped?
> ! 			kill -0 ${pid} &>/dev/null 
>   			if [ $? -eq 0 ]; then
>   				controlled_sleep ${try}
>   				try=`expr ${try} + 1`
> --- 199,205 ----
>   			fi
>   
>   			# really stopped?
> ! 			kill -0 ${pid} #&>/dev/null
>   			if [ $? -eq 0 ]; then
>   				controlled_sleep ${try}
>   				try=`expr ${try} + 1`
> 

That should be > /dev/null 2>&1, shouldn't it?

Joerg



More information about the nsd-users mailing list