From: Junio C Hamano Date: Wed, 21 Sep 2011 02:35:55 GMT Subject: Re: [PATCH 1/5] git-p4 tests: refactor, split out common functions Message-ID: <7vboue4o6s.fsf@alter.siamese.dyndns.org> In-Reply-To: <7vfwjq4o96.fsf@alter.siamese.dyndns.org> Junio C Hamano writes: > Yeah, something like > > : start > p4d & > echo $! >$pidfile Obviously I should have written: : stop pid=$(cat "$pidfile") while kill -0 $pid do kill $pid sleep 1 done Sorry for the noise. > : stop > while kill -0 $pidfile > do > kill $pidfile > sleep 1 > done > >> Finding an unused port is also a pain. > > I think the way t55xx series assign LIB_HTTPD_PORT is an acceptable > compromise.