mingw: work around irregular failures of unlink on windows
commit42b51e95d20ea110675bee4b812ebee39d2b73e8
authorHeiko Voigt <hvoigt@hvoigt.net>
Tue, 26 Jan 2010 20:48:45 +0000 (26 21:48 +0100)
committerPat Thoyts <patthoyts@users.sourceforge.net>
Sun, 24 Oct 2010 23:04:16 +0000 (25 00:04 +0100)
tree3a2703c7fd2a3d51aa3f85ea500b586e425bbf61
parentf86ceeafb62433b157e18db7488ec72bba75b573
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