~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/signal_handler/signal_handler.cc

  • Committer: Monty Taylor
  • Date: 2010-03-26 23:25:28 UTC
  • mto: (1471.3.2 drizzled-as-lib)
  • mto: This revision was merged to the branch mainline in revision 1479.
  • Revision ID: mordred@inaugust.com-20100326232528-wkbpffu3rbjz2euy
Moved and reworked a wrapper around sigset - which we shouldn't be using
anyway.

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
    set_signal(sig, SIG_IGN);                    /* 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