diff options
Diffstat (limited to 'db/clib/abort.c')
-rw-r--r-- | db/clib/abort.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/db/clib/abort.c b/db/clib/abort.c new file mode 100644 index 000000000..d3069a442 --- /dev/null +++ b/db/clib/abort.c @@ -0,0 +1,29 @@ +/*- + * See the file LICENSE for redistribution information. + * + * Copyright (c) 2005-2006 + * Oracle Corporation. All rights reserved. + * + * $Id: abort.c,v 1.3 2006/09/07 14:12:59 bostic Exp $ + */ + +#include "db_config.h" + +#include "db_int.h" + +/* + * abort -- + * + * PUBLIC: #ifndef HAVE_ABORT + * PUBLIC: void abort __P((void)); + * PUBLIC: #endif + */ +void +abort() +{ +#ifdef SIGABRT + raise(SIGABRT); /* Try and drop core. */ +#endif + exit(1); + /* NOTREACHED */ +} |