Peter Rosin : msvcrt: Handle the SIGBREAK signal.
Alexandre Julliard
julliard at winehq.org
Thu Dec 3 10:29:50 CST 2009
Module: wine
Branch: master
Commit: f79cd33fc46a8c18b88a20040515a5e244a97901
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f79cd33fc46a8c18b88a20040515a5e244a97901
Author: Peter Rosin <peda at lysator.liu.se>
Date: Wed Dec 2 20:21:21 2009 +0100
msvcrt: Handle the SIGBREAK signal.
---
dlls/msvcrt/except.c | 2 ++
dlls/msvcrt/tests/signal.c | 6 +++---
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/dlls/msvcrt/except.c b/dlls/msvcrt/except.c
index 119469b..9f7c22d 100644
--- a/dlls/msvcrt/except.c
+++ b/dlls/msvcrt/except.c
@@ -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)
diff --git a/dlls/msvcrt/tests/signal.c b/dlls/msvcrt/tests/signal.c
index b871a85..b2c16d5 100644
--- a/dlls/msvcrt/tests/signal.c
+++ b/dlls/msvcrt/tests/signal.c
@@ -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)
More information about the wine-cvs
mailing list