Skip to content
Snippets Groups Projects
Commit f484e83b authored by rswindell's avatar rswindell
Browse files

flock() version of sopen() should return EAGAIN, not EWOULDBLOCK.

parent ad162404
No related branches found
No related tags found
No related merge requests found
......@@ -138,6 +138,8 @@ int DLLCALL sopen(char *fn, int access, int share)
else /* SH_DENYWR */
flock_op|=LOCK_SH;
if(flock(fd,flock_op)!=0) {
if(errno==EWOULDBLOCK)
errno=EAGAIN;
close(fd);
return(-1);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment