mingw: work around irregular failures of unlink on windows
commitafbf7b686650e73713747ac0f236ae00c01ab9ed
authorHeiko Voigt <hvoigt@hvoigt.net>
Tue, 26 Jan 2010 20:48:45 +0000 (26 21:48 +0100)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Tue, 1 Feb 2011 22:23:18 +0000 (1 16:23 -0600)
tree9f9b14029137ed25d0cf9f888c13bd43b414536b
parent202abfa0decf9926a4460b7465153ffd08fb96f2
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