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
f79cd33f
Commit
f79cd33f
authored
Dec 02, 2009
by
Peter Rosin
Committed by
Alexandre Julliard
Dec 03, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Handle the SIGBREAK signal.
parent
83ec2f4f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
except.c
dlls/msvcrt/except.c
+2
-0
signal.c
dlls/msvcrt/tests/signal.c
+3
-3
No files found.
dlls/msvcrt/except.c
View file @
f79cd33f
...
...
@@ -556,6 +556,7 @@ MSVCRT___sighandler_t CDECL MSVCRT_signal(int sig, MSVCRT___sighandler_t func)
case
MSVCRT_SIGSEGV
:
case
MSVCRT_SIGINT
:
case
MSVCRT_SIGTERM
:
case
MSVCRT_SIGBREAK
:
ret
=
sighandlers
[
sig
];
sighandlers
[
sig
]
=
func
;
break
;
...
...
@@ -582,6 +583,7 @@ int CDECL MSVCRT_raise(int sig)
case
MSVCRT_SIGSEGV
:
case
MSVCRT_SIGINT
:
case
MSVCRT_SIGTERM
:
case
MSVCRT_SIGBREAK
:
handler
=
sighandlers
[
sig
];
if
(
handler
==
MSVCRT_SIG_DFL
)
MSVCRT__exit
(
3
);
if
(
handler
!=
MSVCRT_SIG_IGN
)
...
...
dlls/msvcrt/tests/signal.c
View file @
f79cd33f
...
...
@@ -37,11 +37,11 @@ static void test_signal(void)
int
res
;
old
=
signal
(
SIGBREAK
,
sighandler
);
todo_wine
ok
(
old
!=
SIG_ERR
,
"Failed to install signal handler for SIGBREAK
\n
"
);
ok
(
old
!=
SIG_ERR
,
"Failed to install signal handler for SIGBREAK
\n
"
);
test_value
=
0
;
res
=
raise
(
SIGBREAK
);
todo_wine
ok
(
res
==
0
,
"Failed to raise SIGBREAK
\n
"
);
todo_wine
ok
(
test_value
==
1
,
"SIGBREAK handler not invoked
\n
"
);
ok
(
res
==
0
,
"Failed to raise SIGBREAK
\n
"
);
ok
(
test_value
==
1
,
"SIGBREAK handler not invoked
\n
"
);
}
START_TEST
(
signal
)
...
...
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