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

Re: [PATCH] fetch-pack: Prepare for a side-band demultiplexer in a thread.

From
Alex Riesen <raa.lkml@gmail.com>
Date
Nov 18, 2007, 01:05 UTC
Message-ID
<20071118010532.GC7664@steel.home>
In-Reply-To
<7vtznkz8nw.fsf@gitster.siamese.dyndns.org>
Junio C Hamano, Sun, Nov 18, 2007 01:42:11 +0100:
Show 12 quoted lines
> Johannes Sixt <johannes.sixt@telecom.at> writes:
> 
> > 	This change again originates from the MinGW port. Since we don't
> > 	have fork(2) on Windows, we must run the sideband demultiplexer
> > 	in a thread.
> 
> If the rationale was "running in a thread is more natural on the
> platform", I would understand it.
> 
> But "_must_ run because there is no fork(2)" solicits a "Huh?
> How does Cygwin does it then?" from me.
> 

You wont believe it: they start the currently running program again and copy parents memory over into the child. Sometimes it fails. If you want something scary: http://cygwin.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/fork.cc?rev=1.193&content-type=text/x-cvsweb-markup&cvsroot=src

Previous: Junio C HamanoNext: Johannes Sixt
Message 3 of 7 in “fetch-pack: Prepare for a side-band demultiplexer in a thread.”
  1. fetch-pack: Prepare for a side-band demultiplexer in a thread.Johannes Sixt, Nov 17, 2007
  2. Junio C HamanoNov 18, 2007
  3. Alex RiesenNov 18, 2007
  4. Johannes SixtNov 18, 2007
  5. Junio C HamanoNov 18, 2007
  6. Johannes SixtNov 18, 2007
  7. Robin RosenbergNov 18, 2007

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.