git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 0/2] git-credential-cache--daemon on Cygwin

From
Jeff King <peff@peff.net>
Date
Oct 27, 2011, 17:41 UTC
Message-ID
<20111027174123.GA1967@sigill.intra.peff.net>
In-Reply-To
<4EA99266.7030002@ramsay1.demon.co.uk>
On Thu, Oct 27, 2011 at 06:18:30PM +0100, Ramsay Jones wrote:
Show 8 quoted lines
> > It's definitely coming back, so if you feel like working on it, please
> > do. Also note that if it would be easier to have an alternate
> > abstraction for inter-process communication on windows, I'm open to
> > doing that in the cache daemon.
> 
> My initial reaction was to use a "named pipe" (aka fifo), but on reflection,
> I don't think it would be any easier; the unix socket emulation should not be too
> difficult (famous last words!).  :-D

The problem with named pipes is that all clients share the same pipe. So if two clients connect, their writes will be intermingled at the server, and they will both get the responses for each other. Assuming your platform provides atomic write() over pipes, you could design a packet-ized protocol, and just have clients ignore packets not meant for them. But that's getting pretty complex.

-Peff
Previous: Ramsay Jones
Message 4 of 4 in “git-credential-cache--daemon on Cygwin”
  1. 0/2 git-credential-cache--daemon on CygwinRamsay Jones, Oct 22, 2011
  2. Jeff KingOct 22, 2011
  3. Ramsay JonesOct 27, 2011
  4. Jeff KingOct 27, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.