~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/signal_handler/signal_handler.cc

  • Committer: Joe Daly
  • Date: 2010-06-08 03:11:13 UTC
  • mto: This revision was merged to the branch mainline in revision 1614.
  • Revision ID: skinny.moey@gmail.com-20100608031113-wt8o9k2bbyawwazs
add missing guard in header

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
#include "drizzled/internal/my_pthread.h"
24
24
#include "drizzled/internal/my_sys.h"
25
25
#include "drizzled/plugin/daemon.h"
 
26
#include "drizzled/signal_handler.h"
26
27
 
27
28
#include <sys/stat.h>
28
29
#include <fcntl.h>
67
68
  kill_in_progress=true;
68
69
  abort_loop=1;                                 // This should be set
69
70
  if (sig != 0) // 0 is not a valid signal number
70
 
    my_sigset(sig, SIG_IGN);                    /* purify inspected */
 
71
    ignore_signal(sig);                    /* purify inspected */
71
72
  if (sig == SIGTERM || sig == 0)
72
73
    errmsg_printf(ERRMSG_LVL_INFO, _(ER(ER_NORMAL_SHUTDOWN)),internal::my_progname);
73
74
  else
260
261
  }
261
262
};
262
263
 
263
 
static int init(drizzled::plugin::Context& context)
 
264
static int init(drizzled::module::Context& context)
264
265
{
265
266
  SignalHandler *handler= new SignalHandler;
266
267
  context.add(handler);