mingw: work around irregular failures of unlink on windows
commit88d1dbe6969ca038cd4551aa390985bfdf1b00ef
authorHeiko Voigt <hvoigt@hvoigt.net>
Tue, 26 Jan 2010 20:48:45 +0000 (26 21:48 +0100)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Mon, 12 Apr 2010 12:56:10 +0000 (12 14:56 +0200)
tree39c4ad739cfb761a621abb7a6e2eeb6d0e73ff3b
parenta92d8e3484111d2a039d63f97d4df048c7e40c52
mingw: work around irregular failures of unlink on windows

If a file is opened by another process (e.g. indexing of an IDE) for
reading it is not allowed to be deleted. So in case unlink fails retry
after waiting for some time. This extends the workaround from 6ac6f878.

Signed-off-by: Heiko Voigt <hvoigt@hvoigt.net>
compat/mingw.c