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
50c6b74a
Commit
50c6b74a
authored
Jan 07, 2002
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added SIGNAL_Reset function.
parent
9e458b99
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
55 additions
and
0 deletions
+55
-0
signal_i386.c
dlls/ntdll/signal_i386.c
+29
-0
signal_sparc.c
dlls/ntdll/signal_sparc.c
+26
-0
No files found.
dlls/ntdll/signal_i386.c
View file @
50c6b74a
...
...
@@ -1055,6 +1055,35 @@ BOOL SIGNAL_Init(void)
}
/**********************************************************************
* SIGNAL_Reset
*/
void
SIGNAL_Reset
(
void
)
{
sigset_t
block_set
;
/* block the async signals */
sigemptyset
(
&
block_set
);
sigaddset
(
&
block_set
,
SIGALRM
);
sigaddset
(
&
block_set
,
SIGIO
);
sigaddset
(
&
block_set
,
SIGHUP
);
sigaddset
(
&
block_set
,
SIGUSR2
);
sigprocmask
(
SIG_BLOCK
,
&
block_set
,
NULL
);
/* restore default handlers */
signal
(
SIGINT
,
SIG_DFL
);
signal
(
SIGFPE
,
SIG_DFL
);
signal
(
SIGSEGV
,
SIG_DFL
);
signal
(
SIGILL
,
SIG_DFL
);
#ifdef SIGBUS
signal
(
SIGBUS
,
SIG_DFL
);
#endif
#ifdef SIGTRAP
signal
(
SIGTRAP
,
SIG_DFL
);
#endif
}
#ifdef __HAVE_VM86
/**********************************************************************
* __wine_enter_vm86
...
...
dlls/ntdll/signal_sparc.c
View file @
50c6b74a
...
...
@@ -364,6 +364,32 @@ BOOL SIGNAL_Init(void)
return
FALSE
;
}
/**********************************************************************
* SIGNAL_Reset
*/
void
SIGNAL_Reset
(
void
)
{
sigset_t
block_set
;
/* block the async signals */
sigemptyset
(
&
block_set
);
sigaddset
(
&
block_set
,
SIGALRM
);
sigaddset
(
&
block_set
,
SIGIO
);
sigaddset
(
&
block_set
,
SIGHUP
);
sigaddset
(
&
block_set
,
SIGUSR2
);
sigprocmask
(
SIG_BLOCK
,
&
block_set
,
NULL
);
/* restore default handlers */
signal
(
SIGINT
,
SIG_DFL
);
signal
(
SIGFPE
,
SIG_DFL
);
signal
(
SIGSEGV
,
SIG_DFL
);
signal
(
SIGILL
,
SIG_DFL
);
signal
(
SIGBUS
,
SIG_DFL
);
signal
(
SIGTRAP
,
SIG_DFL
);
}
/**********************************************************************
* __wine_enter_vm86
*/
...
...
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