Added support for cgroups

This commit is contained in:
Nikos Mavrogiannopoulos
2013-12-10 11:07:08 +01:00
parent fd25969aca
commit c6a08db6db
8 changed files with 99 additions and 17 deletions
+4
View File
@@ -822,6 +822,7 @@ int main(int argc, char** argv)
setproctitle(PACKAGE_NAME"-worker");
kill_on_parent_kill(SIGTERM);
ws.config = &config;
ws.cmd_fd = cmd_fd[1];
@@ -853,6 +854,9 @@ fork_failed:
set_cloexec_flag (cmd_fd[0], 1);
list_add(&s.clist.head, &(ctmp->list));
put_into_cgroup(&s, s.config->cgroup, pid);
s.active_clients++;
}
close(cmd_fd[1]);