diff options
Diffstat (limited to 'db-4.8.30/os/os_abort.c')
| -rw-r--r-- | db-4.8.30/os/os_abort.c | 33 | 
1 files changed, 33 insertions, 0 deletions
| diff --git a/db-4.8.30/os/os_abort.c b/db-4.8.30/os/os_abort.c new file mode 100644 index 0000000..a119000 --- /dev/null +++ b/db-4.8.30/os/os_abort.c @@ -0,0 +1,33 @@ +/*- + * See the file LICENSE for redistribution information. + * + * Copyright (c) 2005-2009 Oracle.  All rights reserved. + * + * $Id$ + */ + +#include "db_config.h" + +#include "db_int.h" + +/* + * __os_abort -- + * + * PUBLIC: void __os_abort __P((ENV *)); + */ +void +__os_abort(env) +	ENV *env; +{ +	__os_stack(env);		/* Try and get a stack trace. */ + +#ifdef HAVE_ABORT +	abort();			/* Try and drop core. */ +	/* NOTREACHED */ +#endif +#ifdef SIGABRT +	(void)raise(SIGABRT);		/* Try and drop core. */ +#endif +	exit(1);			/* Quit anyway. */ +	/* NOTREACHED */ +} | 
