~brianaker/libmemcached/update-m4-sept

« back to all changes in this revision

Viewing changes to libtest/gearmand.cc

  • Committer: Brian Aker
  • Date: 2013-01-28 22:51:05 UTC
  • mfrom: (1079.1.65 workspace)
  • mto: This revision was merged to the branch mainline in revision 1099.
  • Revision ID: brian@tangent.org-20130128225105-8z352439kwu8vgku
Merge with 1.0 trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
123
123
    return true;
124
124
  }
125
125
 
126
 
  bool build(size_t argc, const char *argv[]);
 
126
  bool build();
127
127
};
128
128
 
129
129
Gearmand::Gearmand(const std::string& host_arg, in_port_t port_arg, bool libtool_, const char* binary_arg) :
132
132
  set_pid_file();
133
133
}
134
134
 
135
 
bool Gearmand::build(size_t argc, const char *argv[])
 
135
bool Gearmand::build()
136
136
{
137
137
  if (getuid() == 0 or geteuid() == 0)
138
138
  {
141
141
 
142
142
  add_option("--listen=localhost");
143
143
 
144
 
  for (size_t x= 0 ; x < argc ; x++)
145
 
  {
146
 
    if (argv[x] == NULL)
147
 
    {
148
 
      break;
149
 
    }
150
 
 
151
 
    add_option(argv[x]);
152
 
  }
153
 
 
154
144
  return true;
155
145
}
156
146