~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/signal_handler/signal_handler.cc

  • Committer: Stewart Smith
  • Date: 2010-07-27 00:49:32 UTC
  • mto: (1720.1.1 drizzle)
  • mto: This revision was merged to the branch mainline in revision 1721.
  • Revision ID: stewart@flamingspork.com-20100727004932-basq3vx9szmmbswm
fix storing and manipulating foreign keys in the proto around ALTER TABLE, CREATE TABLE and ALTER TABLE ADD/DROP FOREIGN KEY. We also (mostly) emulate the naming of innodb foreign keys in the upper layer.

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);