~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to extra/mysql_waitpid.c

mergeĀ mainline

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 
16
16
/* Wait until a program dies */
17
17
 
18
 
#include <mystrings/m_string.h>
19
 
#include <mysys/my_sys.h>
20
 
#include <mysys/my_getopt.h>
 
18
#include <my_global.h>
 
19
#include <m_string.h>
 
20
#include <my_sys.h>
 
21
#include <my_getopt.h>
21
22
#include <signal.h>
22
23
#include <errno.h>
23
24
 
24
25
static const char *VER= "1.1";
25
26
static char *progname;
26
 
static bool verbose;
 
27
static my_bool verbose;
27
28
 
28
29
void usage(void);
29
30
 
35
36
   0, 0, 0, 0, 0},
36
37
  {"verbose", 'v',
37
38
   "Be more verbose. Give a warning, if kill can't handle signal 0.", 
38
 
   (char**) &verbose, (char**) &verbose, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
 
39
   (uchar**) &verbose, (uchar**) &verbose, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
39
40
  {"version", 'V', "Print version information and exit.", 0, 0, 0,
40
41
   GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
41
42
  { 0, 0, 0, 0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0}
42
43
};
43
44
 
44
 
static bool
 
45
static my_bool
45
46
get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
46
47
               char *argument __attribute__((unused)))
47
48
{