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

From: Robert Wruck <[email-masked]>
Date: Fri, 04 Mar 2011 19:26:01 +0100

> 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.