~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: Monty Taylor
  • Date: 2011-03-11 18:48:55 UTC
  • mfrom: (2228.1.8 build)
  • Revision ID: mordred@inaugust.com-20110311184855-1essd3a6xfr7lx6r
Merged Andrew: drizzledump and docs bug fixes
Merged Barry: pbms bugfixes

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 */