~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/signal_handler.cc

Modernize our call to the parser, no more casting required.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
3
 *
4
 
 *  Copyright (C) 2008 Sun Microsystems
 
4
 *  Copyright (C) 2008 Sun Microsystems, Inc.
5
5
 *
6
6
 *  This program is free software; you can redistribute it and/or modify
7
7
 *  it under the terms of the GNU General Public License as published by
29
29
#include "drizzled/probes.h"
30
30
#include "drizzled/plugin.h"
31
31
#include "drizzled/plugin/scheduler.h"
 
32
#include <drizzled/current_session.h>
32
33
 
33
34
#include "drizzled/util/backtrace.h"
34
35
 
49
50
void drizzled_print_signal_warning(int sig)
50
51
{
51
52
  if (global_system_variables.log_warnings)
52
 
    errmsg_printf(ERRMSG_LVL_WARN, _("Got signal %d from thread %"PRIu32),
 
53
    errmsg_printf(error::WARN, _("Got signal %d from thread %"PRIu32),
53
54
                  sig, global_thread_id);
54
55
#ifndef HAVE_BSD_SIGNALS
55
56
  sigset_t set;