#pragma GCC diagnostic ignored "-Wold-style-cast"
#endif
-class GetPid : public util::Instance::Finish
-{
-private:
- pid_t _pid;
-
-public:
- GetPid() :
- _pid(-1)
- { }
-
- pid_t pid()
- {
- return _pid;
- }
-
-
- bool call(const bool success, const std::string &response)
- {
- _pid= -1;
- if (success and response.size())
- {
- _pid= atoi(response.c_str());
- }
-
- if (is_pid_valid(_pid) == false)
- {
- _pid= -1;
- return false;
- }
-
- return true;
- }
-};
-
using namespace libtest;
class Gearmand : public libtest::Server
bool has_syslog() const
{
- return true;
+ return false; // --syslog.errmsg-enable
}
bool has_port_option() const
bool Gearmand::build(size_t argc, const char *argv[])
{
- std::stringstream arg_buffer;
-
if (getuid() == 0 or geteuid() == 0)
{
add_option("-u", "root");