Jeff King <p...@peff.net> writes:
> On Fri, Aug 22, 2014 at 03:19:11PM +0000, Edward Thomson wrote:
>> Keep poll's timeout at -1 when uploadpack.keepalive = 0, instead of
>> setting it to -1000, since some pedantic old systems (eg HP-UX) and
>> the gnulib compat/poll will treat only -1 as the valid value for
>> an infinite timeout.
> That makes sense, and POSIX only specifies the behavior for -1 anyway.
> The patch itself looks obviously correct. Thanks.
> Since we're now translating the keepalive value, and since there's no
> way to set it to "0" (nor would that really have any meaning), I guess
> we could switch the internal "no keepalive" value to 0, and do:
> ret = poll(pfd, pollsize, keepalive ? 1000 * keepalive : -1);
> which would let us avoid setting it to -1 in some other spots. I dunno
> if that actually makes a real difference to maintainability, though.
> Either way:
> Acked-by: Jeff King <p...@peff.net>
There is 1000 * wakeup in credential-cache--daemon.c, by the way.
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html