Skip to content

Commit

Permalink
Make fatal_assert() use abort() instead of exit()
Browse files Browse the repository at this point in the history
  • Loading branch information
keithw committed Aug 7, 2012
1 parent c073ad3 commit 7989d38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/fatal_assert.h
Expand Up @@ -40,7 +40,7 @@ static void fatal_error( const char *expression, const char *file, int line, con
{ {
fprintf( stderr, "Fatal assertion failure in function %s at %s:%d\nFailed test: %s\n", fprintf( stderr, "Fatal assertion failure in function %s at %s:%d\nFailed test: %s\n",
function, file, line, expression ); function, file, line, expression );
exit( 2 ); abort();
} }


#define fatal_assert(expr) \ #define fatal_assert(expr) \
Expand Down

0 comments on commit 7989d38

Please sign in to comment.