1/*-
2 * See the file LICENSE for redistribution information.
3 *
4 * Copyright (c) 2005,2008 Oracle.  All rights reserved.
5 *
6 * $Id: os_abort.c,v 1.11 2008/01/08 20:58:43 bostic Exp $
7 */
8
9#include "db_config.h"
10
11#include "db_int.h"
12
13/*
14 * __os_abort --
15 *
16 * PUBLIC: void __os_abort __P((ENV *));
17 */
18void
19__os_abort(env)
20	ENV *env;
21{
22	__os_stack(env);		/* Try and get a stack trace. */
23
24#ifdef HAVE_ABORT
25	abort();			/* Try and drop core. */
26	/* NOTREACHED */
27#endif
28#ifdef SIGABRT
29	(void)raise(SIGABRT);		/* Try and drop core. */
30#endif
31	exit(1);			/* Quit anyway. */
32	/* NOTREACHED */
33}
34