Re: [PATCH] upload-archive: fix infinite loop on Cygwin
- From
Tony Finch <dot@dotat.at>
- Date
- Jun 18, 2009, 17:18 UTC
- Message-ID
- <alpine.LSU.2.00.0906181817400.2474@hermes-2.csi.cam.ac.uk>
- In-Reply-To
- <4A38C13E.6050800@lsrfire.ath.cx>
On Wed, 17 Jun 2009, René Scharfe wrote:
> On Cygwin, poll() reports POLLIN even for file descriptors that have > reached their end. This caused git upload-archive to be stuck in an > infinite loop, as it only looked at the POLLIN flag.
I think it isn't just Cygwin that does this - see http://www.greenend.org.uk/rjk/2001/06/poll.html
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.