~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to extra/mysql_waitpid.cc

  • Committer: Brian Aker
  • Date: 2009-01-21 05:53:36 UTC
  • mto: This revision was merged to the branch mainline in revision 801.
  • Revision ID: brian@tangent.org-20090121055336-fxoz6wfzreo8gi9x
Removed purge

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 <drizzled/global.h>
18
19
#include <mystrings/m_string.h>
19
20
#include <mysys/my_sys.h>
20
21
#include <mysys/my_getopt.h>
 
22
 
 
23
#include <stdio.h>
21
24
#include <signal.h>
22
25
#include <errno.h>
23
26
 
34
37
  {"help", 'I', "Synonym for -?.", 0, 0, 0, GET_NO_ARG, NO_ARG, 0,
35
38
   0, 0, 0, 0, 0},
36
39
  {"verbose", 'v',
37
 
   "Be more verbose. Give a warning, if kill can't handle signal 0.", 
 
40
   "Be more verbose. Give a warning, if kill can't handle signal 0.",
38
41
   (char**) &verbose, (char**) &verbose, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
39
42
  {"version", 'V', "Print version information and exit.", 0, 0, 0,
40
43
   GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
41
44
  { 0, 0, 0, 0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0}
42
45
};
43
46
 
44
 
static bool
45
 
get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
46
 
               char *argument __attribute__((unused)))
 
47
extern "C"
 
48
bool get_one_option(int optid, const struct my_option *, char *)
47
49
{
48
50
  switch(optid) {
49
51
  case 'V':
55
57
  }
56
58
  return 0;
57
59
}
58
 
 
 
60
 
59
61
 
60
62
int main(int argc, char *argv[])
61
63
{