Commit 0d30ac47 authored by Sophie Wenzel-Teuber's avatar Sophie Wenzel-Teuber Committed by Ciarán Ó Rourke
Browse files

Fix integration tests to work with the new superbuild

Change log:
* Close file descriptors later in the process
parent bc23380f
Pipeline #2187 failed with stages
in 3 seconds
......@@ -83,11 +83,6 @@ int main(int argc, char* argv[])
pid_filename, std::ofstream::out | std::ofstream::trunc);
pid_file << sid;
pid_file.close();
/* close standard file descriptors */
close(STDIN_FILENO);
close(STDOUT_FILENO);
close(STDERR_FILENO);
}
if (config.stop_daemon()) {
pid_t pid;
......@@ -138,6 +133,12 @@ int main(int argc, char* argv[])
proxygen::HTTPServer server(std::move(options));
server.bind(IPs);
/* close standard file descriptors */
close(STDIN_FILENO);
close(STDOUT_FILENO);
close(STDERR_FILENO);
/* Start HTTPServer mainloop in a separate thread */
spdlog::info("Starting server");
std::thread t([&]() { server.start(); });
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment