From f415b5ddeb5ecdaf808e69af7d22e43da1e0e254 Mon Sep 17 00:00:00 2001 From: Eric Pouech Date: Thu, 8 Feb 2007 21:33:45 +0100 Subject: [PATCH] msvcrt: Use raise(SIGABRT) for abort() and assert(). --- dlls/msvcrt/exit.c | 4 ++++ dlls/msvcrt/msvcrt.h | 1 + 2 files changed, 5 insertions(+) diff --git a/dlls/msvcrt/exit.c b/dlls/msvcrt/exit.c index a5d528364e5..9badd723424 100644 --- a/dlls/msvcrt/exit.c +++ b/dlls/msvcrt/exit.c @@ -155,6 +155,8 @@ void CDECL MSVCRT_abort(void) } else _cputs("\nabnormal program termination\n"); + MSVCRT_raise(MSVCRT_SIGABRT); + /* in case raise() returns */ MSVCRT__exit(3); } @@ -172,6 +174,8 @@ void CDECL MSVCRT__assert(const char* str, const char* file, unsigned int line) } else _cprintf("Assertion failed: %s, file %s, line %d\n\n",str, file, line); + MSVCRT_raise(MSVCRT_SIGABRT); + /* in case raise() returns */ MSVCRT__exit(3); } diff --git a/dlls/msvcrt/msvcrt.h b/dlls/msvcrt/msvcrt.h index e7b037fd091..83a27fde2df 100644 --- a/dlls/msvcrt/msvcrt.h +++ b/dlls/msvcrt/msvcrt.h @@ -611,6 +611,7 @@ MSVCRT_FILE* MSVCRT__fdopen(int, const char *); int MSVCRT_vsnprintf(char *str, unsigned int len, const char *format, va_list valist); int MSVCRT_vsnwprintf(MSVCRT_wchar_t *str, unsigned int len, const MSVCRT_wchar_t *format, va_list valist ); +int MSVCRT_raise(int sig); #ifndef __WINE_MSVCRT_TEST int _write(int,const void*,unsigned int);