mingw: work around irregular failures of unlink on windows
commit79053a67cd2f55b5cb1552244c5d8a7cb7a9282c
authorHeiko Voigt <hvoigt@hvoigt.net>
Tue, 26 Jan 2010 20:48:45 +0000 (26 21:48 +0100)
committerPat Thoyts <patthoyts@users.sourceforge.net>
Fri, 10 Sep 2010 22:43:53 +0000 (10 23:43 +0100)
tree0da4532a79e2d5ed34cd0f2dbf7ea140622877ad
parentedb835121e13d39ef0a070988f7295dee8532f3e
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