Jeff King writes:
> Squash this in?
Yeah, I did a crude one without _errno() while sending the report;
will replace.
Thanks.
>
> diff --git a/credential-cache--daemon.c b/credential-cache--daemon.c
> index c07a67c..c2f0049 100644
> --- a/credential-cache--daemon.c
> +++ b/credential-cache--dae
On Mon, Sep 15, 2014 at 02:38:11PM -0700, Junio C Hamano wrote:
> Jeff King writes:
>
> > + if (!debug)
> > + freopen("/dev/null", "w", stderr);
>
> I am getting this:
>
> credential-cache--daemon.c:216:10: error: ignoring return value of
> 'freopen', declared with attribute warn_u
Jeff King writes:
> + if (!debug)
> + freopen("/dev/null", "w", stderr);
I am getting this:
credential-cache--daemon.c:216:10: error: ignoring return value of
'freopen', declared with attribute warn_unused_result
[-Werror=unused-result]
which is somewhat irritating. Even thoug
If the stderr of "git credential-cache" is redirected to a
pipe, the reader on the other end of a pipe may be surprised
that the pipe remains open long after the process exits.
This happens because we may auto-spawn a daemon which is
long-lived, and which keeps stderr open.
We can solve this by re
4 matches
Mail list logo