Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
735dbc40
Commit
735dbc40
authored
Jan 18, 2007
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Make the fd cache section an uninterruptible section.
parent
3410354d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
server.c
dlls/ntdll/server.c
+3
-2
No files found.
dlls/ntdll/server.c
View file @
735dbc40
...
...
@@ -558,13 +558,14 @@ int server_remove_fd_from_cache( obj_handle_t handle )
int
server_get_unix_fd
(
obj_handle_t
handle
,
unsigned
int
access
,
int
*
unix_fd
,
int
*
needs_close
,
enum
server_fd_type
*
type
,
int
*
flags
)
{
sigset_t
sigset
;
obj_handle_t
fd_handle
;
int
ret
=
0
,
removable
=
0
,
fd
;
*
unix_fd
=
-
1
;
*
needs_close
=
0
;
RtlEnterCriticalSection
(
&
fd_cache_section
);
server_enter_uninterrupted_section
(
&
fd_cache_section
,
&
sigset
);
fd
=
get_cached_fd
(
handle
,
type
);
if
(
fd
!=
-
1
&&
!
flags
)
goto
done
;
...
...
@@ -593,7 +594,7 @@ int server_get_unix_fd( obj_handle_t handle, unsigned int access, int *unix_fd,
SERVER_END_REQ
;
done:
RtlLeaveCriticalSection
(
&
fd_cache_section
);
server_leave_uninterrupted_section
(
&
fd_cache_section
,
&
sigset
);
if
(
!
ret
)
*
unix_fd
=
fd
;
return
ret
;
}
...
...
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