Re: [PATCH 1/5] git-p4 tests: refactor, split out common functions
Junio C Hamano <gitster@pobox.com> writes:
Show 5 quoted lines
> 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
doneSorry for the noise.
Show 11 quoted lines
> : 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.