~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/signal_handler/signal_handler.cc

  • Committer: Eric Day
  • Date: 2010-01-07 20:02:38 UTC
  • mfrom: (1259.4.2 staging)
  • mto: This revision was merged to the branch mainline in revision 1271.
  • Revision ID: eday@oddments.org-20100107200238-uqw8v6kv9pl7nny5
Merged trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
   along with this program; if not, write to the Free Software
14
14
   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA */
15
15
 
16
 
#include <drizzled/server_includes.h>
 
16
#include "config.h"
17
17
#include <drizzled/gettext.h>
18
18
#include <drizzled/error.h>
19
19
#include <drizzled/unireg.h>
20
20
#include <drizzled/plugin/storage_engine.h>
21
21
#include <drizzled/cursor.h> /* for refresh_version */
 
22
#include "drizzled/pthread_globals.h"
 
23
#include "drizzled/internal/my_pthread.h"
 
24
#include "drizzled/internal/my_sys.h"
 
25
 
 
26
#include <sys/stat.h>
 
27
#include <fcntl.h>
22
28
 
23
29
static bool kill_in_progress= false;
24
30
static bool volatile signal_thread_in_use= false;
25
31
extern int cleanup_done;
26
32
extern "C" pthread_handler_t signal_hand(void *);
 
33
extern bool volatile abort_loop;
 
34
extern bool volatile shutdown_in_progress;
 
35
extern char pidfile_name[FN_REFLEN];
27
36
 
 
37
extern std::bitset<12> test_flags;
28
38
 
29
39
/* Prototypes -> all of these should be factored out into a propper shutdown */
30
40
extern void close_connections(void);
252
262
 
253
263
DRIZZLE_DECLARE_PLUGIN
254
264
{
 
265
  DRIZZLE_VERSION_ID,
255
266
  "signal_handler",
256
267
  "0.1",
257
268
  "Brian Aker",