msvcrt: Use raise(SIGABRT) for abort() and assert().
This commit is contained in:
parent
bb5a20c61a
commit
f415b5ddeb
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue