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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxx>  http://dotat.at/
GERMAN BIGHT HUMBER: SOUTHWEST 5 TO 7. MODERATE OR ROUGH. SQUALLY SHOWERS.
MODERATE OR GOOD.

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]