~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/signal_handler.cc

  • Committer: Monty Taylor
  • Date: 2010-04-01 18:07:18 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-20100401180718-26vblit959akf527
Merged in revs removing depend on the plugin tree.

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
    errmsg_printf(ERRMSG_LVL_WARN, _("Got signal %d from thread %"PRIu64),
51
51
                  sig, global_thread_id);
52
52
#ifndef HAVE_BSD_SIGNALS
53
 
  set_signal(sig,drizzled_print_signal_warning);                /* int. thread system calls */
 
53
  sigset_t set;
 
54
  sigemptyset(&set);
 
55
 
 
56
  struct sigaction sa;
 
57
  sa.sa_handler= drizzled_print_signal_warning;
 
58
  sa.sa_mask= set;
 
59
  sa.sa_flags= 0;
 
60
  sigaction(sig, &sa, NULL);  /* int. thread system calls */
54
61
#endif
55
62
  if (sig == SIGALRM)
56
63
    alarm(2);                                   /* reschedule alarm */