From: Alex Riesen Date: Mon, 20 Apr 2009 14:25:29 GMT Subject: Re: [PATCH 2/2] Windows: Skip fstat/lstat optimization in write_entry() Message-ID: <81b0412b0904200725j22de23cajfd4b1cf119e69721@mail.gmail.com> In-Reply-To: <49EC845D.6020107@viscovery.net> 2009/4/20 Johannes Sixt : > Alex Riesen schrieb: >> 2009/4/20 Dmitry Potapov : >>> If the time passed between the creating file and end of writing to it is >>> small (less than timestamp resolution), you may not notice the problem. >>> The following program demonstrates the problem with fstat on Windows. >>> (I compiled it using Cygwin). If you remove 'sleep' then you may not >>> notice the problem for a long time. >> >> And the Windows being as slow as it is, the problem can stay undetected for >> a long time in a real working code. > > You got that wrong: If Windows were slow, the error would have been > triggered more often and it would have been detected earlier. There you > have the proof: Windows is fast ... enough :-P Err, yes. Still a piece of cpp junk