diff options
author | Julian Andres Klode <julian.klode@canonical.com> | 2020-07-14 16:06:44 +0200 |
---|---|---|
committer | Julian Andres Klode <julian.klode@canonical.com> | 2020-08-04 12:12:10 +0200 |
commit | 264137c679fb0d3c1f476dcb4ae207abc601b0b2 (patch) | |
tree | ebb06742899b3c52e28825c8a9d5192b240eaaf3 /test | |
parent | 9f78677281b8866a28af469dc7f437771f2a1b8f (diff) |
aptwebserver: Rename slaves to workers
Apologies.
Diffstat (limited to 'test')
-rw-r--r-- | test/interactive-helper/aptwebserver.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/test/interactive-helper/aptwebserver.cc b/test/interactive-helper/aptwebserver.cc index 0398a12b6..f074cd148 100644 --- a/test/interactive-helper/aptwebserver.cc +++ b/test/interactive-helper/aptwebserver.cc @@ -960,7 +960,8 @@ int main(int const argc, const char * argv[]) // create socket, bind and listen to it {{{ // ignore SIGPIPE, this can happen on write() if the socket closes connection signal(SIGPIPE, SIG_IGN); - // we don't care for our slaves, so ignore their death + // ignore worker processes exiting, as we don't want to cause them to stay + // around as zombies because we're busy. signal(SIGCHLD, SIG_IGN); int sock = socket(AF_INET6, SOCK_STREAM, 0); @@ -1051,9 +1052,9 @@ int main(int const argc, const char * argv[]) std::clog << "Serving ANY file on port: " << port << std::endl; - int const slaves = _config->FindI("aptwebserver::slaves", SOMAXCONN); - std::cerr << "SLAVES: " << slaves << std::endl; - listen(sock, slaves); + int const workers = _config->FindI("aptwebserver::workers", SOMAXCONN); + std::cerr << "WORKERS: " << workers << std::endl; + listen(sock, workers); /*}}}*/ _config->CndSet("aptwebserver::response-header::Server", "APT webserver"); |