~ubuntu-branches/ubuntu/saucy/db/saucy-proposed

« back to all changes in this revision

Viewing changes to os/os_abort.c

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2010-11-05 15:02:09 UTC
  • mfrom: (13.1.12 sid)
  • Revision ID: james.westby@ubuntu.com-20101105150209-ppvyn0619pu014xo
Tags: 5.1.19-1ubuntu1
* Resynchronise with Debian.  Remaining changes:
  - Pass --build/--host to configure to support cross-building, and don't
    override CC.
  - Disable the Java build when cross-building, for now.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*-
2
 
 * See the file LICENSE for redistribution information.
3
 
 *
4
 
 * Copyright (c) 2005, 2010 Oracle and/or its affiliates.  All rights reserved.
5
 
 *
6
 
 * $Id$
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
 
 */
18
 
void
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
 
}