Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
473a3a47
Commit
473a3a47
authored
May 08, 2014
by
Vincent Povirk
Committed by
Alexandre Julliard
May 09, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Try to get a read lock if we can't get a write lock.
parent
cf75c536
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
fd.c
server/fd.c
+6
-2
No files found.
server/fd.c
View file @
473a3a47
...
...
@@ -1175,8 +1175,12 @@ static int set_unix_lock( struct fd *fd, file_pos_t start, file_pos_t end, int t
return
0
;
case
EBADF
:
/* this can happen if we try to set a write lock on a read-only file */
/* we just ignore that error */
if
(
fl
.
l_type
==
F_WRLCK
)
return
1
;
/* try to at least grab a read lock */
if
(
fl
.
l_type
==
F_WRLCK
)
{
type
=
F_RDLCK
;
break
;
/* retry */
}
set_error
(
STATUS_ACCESS_DENIED
);
return
0
;
#ifdef EOVERFLOW
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment