mirror of
https://github.com/git/git
synced 2024-10-28 19:25:47 +00:00
f5e3c0b9d0
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 redirecting the daemon's stderr to /dev/null once we are ready to go into our event loop. We would not want to do so before then, because we may want to report errors about the setup (e.g., failure to establish the listening socket). This does mean that we will not report errors we encounter for specific clients. That's acceptable, as such errors should be rare (e.g., clients sending buggy requests). However, we also provide an escape hatch: if you want to see these later messages, you can provide the "--debug" option to keep stderr open. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
30 lines
864 B
Text
30 lines
864 B
Text
git-credential-cache--daemon(1)
|
|
===============================
|
|
|
|
NAME
|
|
----
|
|
git-credential-cache--daemon - Temporarily store user credentials in memory
|
|
|
|
SYNOPSIS
|
|
--------
|
|
[verse]
|
|
git credential-cache--daemon [--debug] <socket>
|
|
|
|
DESCRIPTION
|
|
-----------
|
|
|
|
NOTE: You probably don't want to invoke this command yourself; it is
|
|
started automatically when you use linkgit:git-credential-cache[1].
|
|
|
|
This command listens on the Unix domain socket specified by `<socket>`
|
|
for `git-credential-cache` clients. Clients may store and retrieve
|
|
credentials. Each credential is held for a timeout specified by the
|
|
client; once no credentials are held, the daemon exits.
|
|
|
|
If the `--debug` option is specified, the daemon does not close its
|
|
stderr stream, and may output extra diagnostics to it even after it has
|
|
begun listening for clients.
|
|
|
|
GIT
|
|
---
|
|
Part of the linkgit:git[1] suite
|