~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/pbms/src/cslib/CSThread.cc

  • Committer: Olaf van der Spek
  • Date: 2011-07-04 19:11:47 UTC
  • mto: This revision was merged to the branch mainline in revision 2367.
  • Revision ID: olafvdspek@gmail.com-20110704191147-s99ojek811zi1fzj
RemoveĀ unusedĀ Name_resolution_context::error_reporter

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
#include "CSStrUtil.h"
49
49
#include "CSMemory.h"
50
50
 
 
51
#define PBMS_THREAD_SIG SIGUSR1
51
52
/*
52
53
 * ---------------------------------------------------------------
53
54
 * SIGNAL HANDLERS
98
99
 
99
100
    action.sa_handler = td_catch_signal;
100
101
 
101
 
        if (sigaction(SIGUSR2, &action, NULL) == -1)
 
102
        if (sigaction(PBMS_THREAD_SIG, &action, NULL) == -1)
102
103
                goto error_occurred;
103
104
 
104
105
    action.sa_handler = td_throw_signal;
351
352
        int err;
352
353
 
353
354
        setSignalPending(sig);
354
 
        if ((err = pthread_kill(iThread, SIGUSR2)))
 
355
        if ((err = pthread_kill(iThread, PBMS_THREAD_SIG)))
355
356
        {
356
357
                /* Ignore the error if the process does not exist! */
357
358
                if (err != ESRCH) /* No such process */