mingw: work around irregular failures of unlink on windows
commit189fa92929494a61b9dc25c449331f4bbd157bbd
authorHeiko Voigt <hvoigt@hvoigt.net>
Tue, 26 Jan 2010 20:48:45 +0000 (26 21:48 +0100)
committerPat Thoyts <patthoyts@users.sourceforge.net>
Mon, 20 Sep 2010 14:53:04 +0000 (20 15:53 +0100)
treefb252f5f4a859cb731d122c6185dd53d5db631cc
parent73d1f2d5b22c39a0ddeb5391859d5c59a68636c7
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