mingw: work around irregular failures of unlink on windows
commit4742aa910ec36c1963c1cdfd0e578ede97b80bf8
authorHeiko Voigt <hvoigt@hvoigt.net>
Tue, 26 Jan 2010 20:48:45 +0000 (26 21:48 +0100)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Mon, 5 Jul 2010 09:01:36 +0000 (5 11:01 +0200)
treebe5ab6e0b6bfeb7ed0cf3be789259b92abf02662
parentb79302ee2eb9ba316225408c143c24bfbb7f0e77
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