Commit 3fc65f9d authored by rswindell's avatar rswindell
Browse files

nopen() now loops on EDEADLK/EDEADLOCK on FreeBSD, necessary for smbfs

mounted shared (now why is this different than NFS or local file systems?
and why is it different than smbfs mounted shares on Linux?).
parent 80364008
......@@ -55,7 +55,7 @@ int nopen(const char* str, int access)
if(!(access&O_TEXT))
access|=O_BINARY;
while(((file=sopen(str,access,share,S_IREAD|S_IWRITE))==-1)
&& (errno==EACCES || errno==EAGAIN) && count++<LOOP_NOPEN)
&& (errno==EACCES || errno==EAGAIN || errno==EDEADLOCK) && count++<LOOP_NOPEN)
if(count)
mswait(100);
return(file);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment