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
146fb0de
Commit
146fb0de
authored
Jan 12, 2007
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Make the virtual.c critical section uninterruptible by signals.
Based on a patch by Thomas Kho.
parent
3c55f78f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
59 additions
and
25 deletions
+59
-25
ntdll_misc.h
dlls/ntdll/ntdll_misc.h
+3
-0
server.c
dlls/ntdll/server.c
+20
-0
virtual.c
dlls/ntdll/virtual.c
+36
-25
No files found.
dlls/ntdll/ntdll_misc.h
View file @
146fb0de
...
...
@@ -20,6 +20,7 @@
#define __WINE_NTDLL_MISC_H
#include <stdarg.h>
#include <signal.h>
#include "windef.h"
#include "winnt.h"
...
...
@@ -61,6 +62,8 @@ extern void DECLSPEC_NORETURN server_protocol_error( const char *err, ... );
extern
void
DECLSPEC_NORETURN
server_protocol_perror
(
const
char
*
err
);
extern
void
DECLSPEC_NORETURN
server_exit_thread
(
int
status
);
extern
void
DECLSPEC_NORETURN
server_abort_thread
(
int
status
);
void
server_enter_uninterrupted_section
(
RTL_CRITICAL_SECTION
*
cs
,
sigset_t
*
sigset
);
void
server_leave_uninterrupted_section
(
RTL_CRITICAL_SECTION
*
cs
,
sigset_t
*
sigset
);
extern
int
server_remove_fd_from_cache
(
obj_handle_t
handle
);
extern
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
);
...
...
dlls/ntdll/server.c
View file @
146fb0de
...
...
@@ -327,6 +327,26 @@ unsigned int wine_server_call( void *req_ptr )
/***********************************************************************
* server_enter_uninterrupted_section
*/
void
server_enter_uninterrupted_section
(
RTL_CRITICAL_SECTION
*
cs
,
sigset_t
*
sigset
)
{
pthread_functions
.
sigprocmask
(
SIG_BLOCK
,
&
block_set
,
sigset
);
RtlEnterCriticalSection
(
cs
);
}
/***********************************************************************
* server_leave_uninterrupted_section
*/
void
server_leave_uninterrupted_section
(
RTL_CRITICAL_SECTION
*
cs
,
sigset_t
*
sigset
)
{
RtlLeaveCriticalSection
(
cs
);
pthread_functions
.
sigprocmask
(
SIG_SETMASK
,
sigset
,
NULL
);
}
/***********************************************************************
* wine_server_send_fd (NTDLL.@)
*
* Send a file descriptor to the server.
...
...
dlls/ntdll/virtual.c
View file @
146fb0de
This diff is collapsed.
Click to expand it.
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