Skip to content

Commit 10c4940

Browse files
committed
EWOULDBLOCK.
1 parent d84152d commit 10c4940

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

vfs/os_unix_lock.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ func osLockErrorCode(err error, def _ErrorCode) _ErrorCode {
9898
case unix.EPERM:
9999
return _PERM
100100
}
101+
if errno == unix.EWOULDBLOCK && unix.EWOULDBLOCK != unix.EAGAIN {
102+
return _BUSY
103+
}
101104
}
102105
return def
103106
}

0 commit comments

Comments
 (0)