Skip to content
Snippets Groups Projects
Commit 8f79b209 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Retry file lock/read operations on EIO errors

As seen on MacOS, an SMB shared file can cause the Mac SMB client to report EIO
error on locked-file read or lock attempts. So retry.
parent 516d2750
No related branches found
No related tags found
No related merge requests found
Pipeline #7288 passed
......@@ -145,7 +145,7 @@
#define FCLOSE_OPEN_FILE(x) do { if((x) != NULL) { fclose(x); (x) = NULL; } } while(0)
// These errno values should trigger sopen() and lock() retries, within limits
#define FILE_RETRY_ERRNO(x) ((x)==EACCES || (x)==EAGAIN || (x)==EDEADLOCK || (x)==EBUSY)
#define FILE_RETRY_ERRNO(x) ((x)==EACCES || (x)==EAGAIN || (x)==EDEADLOCK || (x)==EBUSY || (x)==EIO)
/**************/
/* Prototypes */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment