blob: ba3d50a147a99ed8b381daa7650874f8cdfba032 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
/*-
* See the file LICENSE for redistribution information.
*
* Copyright (c) 2005,2007 Oracle. All rights reserved.
*
* $Id: os_abort.c,v 1.7 2007/05/17 15:15:46 bostic Exp $
*/
#include "db_config.h"
#include "db_int.h"
/*
* __os_abort --
*
* PUBLIC: void __os_abort __P((void));
*/
void
__os_abort()
{
#ifdef HAVE_ABORT
abort(); /* Try and drop core. */
#else
#ifdef SIGABRT
(void)raise(SIGABRT); /* Try and drop core. */
#endif
exit(1); /* Quit anyway. */
/* NOTREACHED */
#endif
}
|