msvcrt: Use raise(SIGABRT) for abort() and assert().

This commit is contained in:
Eric Pouech 2007-02-08 21:33:45 +01:00 committed by Alexandre Julliard
parent bb5a20c61a
commit f415b5ddeb
2 changed files with 5 additions and 0 deletions

View file

@ -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);
}

View file

@ -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);