X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libtest%2Fserver.cc;h=182e6f3ec2dad99b40b9e5a2fd505ec932640a0a;hb=7773f76bd15be71f7d1a5579006b786584d3fe26;hp=c29d8c4338b9a4c3ed2f565526611827d9a8010e;hpb=5dbc64bfe7b86b105b1c552eaa2b3f54453db2bc;p=m6w6%2Flibmemcached diff --git a/libtest/server.cc b/libtest/server.cc index c29d8c43..182e6f3e 100644 --- a/libtest/server.cc +++ b/libtest/server.cc @@ -70,7 +70,6 @@ std::ostream& operator<<(std::ostream& output, const Server &arg) output << " Exec:" << arg.running(); } - return output; // for multiple << operators } @@ -138,7 +137,7 @@ bool Server::start() fatal_message("has_pid() failed, programer error"); } - Application app(name(), is_libtool()); + Application app(executable(), is_libtool()); if (args(app) == false) { Error << "Could not build command()"; @@ -151,10 +150,11 @@ bool Server::start() Error << "Application::run() " << ret; return false; } + _running= app.print(); if (Application::SUCCESS != (ret= app.wait())) { - Error << "Application::wait() " << ret; + Error << "Application::wait() " << app.print() << " " << ret; return false; } @@ -332,9 +332,10 @@ bool Server::args(Application& app) app.add_option(daemon_file_option()); } - if (_is_socket and has_socket_file_option()) + if (has_socket_file_option()) { - if (not set_socket_file()) + Error << "adding socket option "; + if (set_socket_file() == false) { return false; }