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

Re: git archive, cygwin, and --git-dir vs --remote

From
Tony Finch <dot@dotat.at>
Date
May 21, 2009, 13:32 UTC
Message-ID
<alpine.LSU.2.00.0905211431060.23478@hermes-2.csi.cam.ac.uk>
In-Reply-To
<4A151A15.6040609@lsrfire.ath.cx>
On Thu, 21 May 2009, René Scharfe wrote:
>
> That's strange.  It seems that poll() reports that there is data to read
> from the child (which is running git-upload-archive), even though it
> already called exit().
Poll reports an FD is readable when it reaches EOF.
> The following patch works around this issue by terminating the otherwise
> endless loop after read() returned nothing for the thousandth time in a
> row.
You should stop reading the first time read() returns 0 i.e. EOF.
Tony.
-- 
f.anthony.n.finch  <dot@dotat.at>  http://dotat.at/
GERMAN BIGHT HUMBER: SOUTHWEST 5 TO 7. MODERATE OR ROUGH. SQUALLY SHOWERS.
MODERATE OR GOOD.
Previous: René ScharfeNext: René Scharfe
Message 3 of 6 in “git archive, cygwin, and --git-dir vs --remote”
  1. Bob KagyMay 18, 2009
  2. René ScharfeMay 21, 2009
  3. Tony FinchMay 21, 2009
  4. René ScharfeMay 21, 2009
  5. upload-archive: fix infinite loop on CygwinRené Scharfe, Jun 17, 2009
  6. Tony FinchJun 18, 2009

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.