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

Re: [BUG] git cat-file does not terminate

From
RWRobert Wruck <wruck@tweerlei.de>
Date
Mar 4, 2011, 18:26 UTC
Message-ID
<4D712EB9.3080802@tweerlei.de>
In-Reply-To
<7vzkpa7qmp.fsf@alter.siamese.dyndns.org>
> By the way, does the same version of Cygwin have similar issue on the read
> side?
Here some quick results:

read(fd, buffer, 90000000) Returns total file size for a file and 65536 (errno=0) for pipes (cat file | readtest). When repeating the read, the whole file is read until read() returns 0. No problem here on any cygwin I tested.

write(fd, buffer, 90000000) Returns 90000000 for a file. Returns 90000000 for redirection (writetest > outfile) Returns 90000000 for pipes (writetest | cat > outfile) on sane cygwins and -1 / EAGAIN on the machine with the original problem.

Previous: Robert WruckNext: Jeff King
Message 6 of 12 in “[BUG] git cat-file does not terminate”
  1. Robert WruckMar 4, 2011
  2. Peter BaumannMar 4, 2011
  3. Jeff KingMar 4, 2011
  4. Junio C HamanoMar 4, 2011
  5. Robert WruckMar 4, 2011
  6. Robert WruckMar 4, 2011
  7. Jeff KingMar 8, 2011
  8. Junio C HamanoMar 8, 2011
  9. Robert WruckMar 9, 2011
  10. Junio C HamanoMar 9, 2011
  11. Robert WruckMar 9, 2011
  12. Jeff KingMar 9, 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.