Files
git/compat
Karsten Blees 7b8bd8e73f Win32: factor out retry logic
The retry pattern is duplicated in three places. It also seems to be too
hard to use: mingw_unlink() and mingw_rmdir() duplicate the code to retry,
and both of them do so incompletely. They also do not restore errno if the
user answers 'no'.

Introduce a retry_ask_yes_no() helper function that handles retry with
small delay, asking the user, and restoring errno.

mingw_unlink: include _wchmod in the retry loop (which may fail if the
file is locked exclusively).

mingw_rmdir: include special error handling in the retry loop.

Signed-off-by: Karsten Blees <blees@dcon.de>
2018-01-17 21:38:29 +01:00
..
2017-07-05 14:01:03 -07:00
2017-07-05 14:01:03 -07:00
2018-01-17 21:38:29 +01:00
2018-01-17 21:38:27 +01:00
2010-11-23 16:06:50 -08:00
2013-09-11 11:08:52 -07:00
2017-01-23 11:02:34 -08:00