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
bbb7dc0f
Commit
bbb7dc0f
authored
Dec 13, 2002
by
Jukka Heinonen
Committed by
Alexandre Julliard
Dec 13, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
When asynchronous signals are blocked, block also SIGUSR2.
Fix race that made signal handler forget to restore FS register.
parent
096beced
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
signal_i386.c
dlls/ntdll/signal_i386.c
+11
-1
No files found.
dlls/ntdll/signal_i386.c
View file @
bbb7dc0f
...
...
@@ -549,8 +549,16 @@ static void save_context( CONTEXT *context, const SIGCONTEXT *sigcontext )
context
->
SegFs
=
fs
;
/* now restore a proper %fs for the fault handler */
if
(
!
IS_SELECTOR_SYSTEM
(
CS_sig
(
sigcontext
)))
/* 16-bit mode */
if
(
!
IS_SELECTOR_SYSTEM
(
CS_sig
(
sigcontext
))
||
!
IS_SELECTOR_SYSTEM
(
SS_sig
(
sigcontext
)))
/* 16-bit mode */
{
/*
* Win16 or DOS protected mode. Note that during switch
* from 16-bit mode to linear mode, CS may be set to system
* segment before FS is restored. Fortunately, in this case
* SS is still non-system segment. This is why both CS and SS
* are checked.
*/
fs
=
SYSLEVEL_Win16CurrentTeb
;
}
#ifdef __HAVE_VM86
...
...
@@ -1079,6 +1087,7 @@ static int set_handler( int sig, int have_sigaltstack, void (*func)() )
sig_act
.
ksa_handler
=
func
;
sig_act
.
ksa_flags
=
SA_RESTART
;
sig_act
.
ksa_mask
=
(
1
<<
(
SIGINT
-
1
))
|
(
1
<<
(
SIGUSR2
-
1
))
|
(
1
<<
(
SIGALRM
-
1
));
/* point to the top of the stack */
sig_act
.
ksa_restorer
=
(
char
*
)
NtCurrentTeb
()
->
signal_stack
+
SIGNAL_STACK_SIZE
;
...
...
@@ -1088,6 +1097,7 @@ static int set_handler( int sig, int have_sigaltstack, void (*func)() )
sig_act
.
sa_handler
=
func
;
sigemptyset
(
&
sig_act
.
sa_mask
);
sigaddset
(
&
sig_act
.
sa_mask
,
SIGINT
);
sigaddset
(
&
sig_act
.
sa_mask
,
SIGUSR2
);
sigaddset
(
&
sig_act
.
sa_mask
,
SIGALRM
);
#ifdef linux
...
...
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