Commit 513b0dc3 authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

zdtm_ct: call setsid() to move in another autogroup

Transition and streaming tests can create many processes
which are using cpu. CPU should be divided between tests fairly.
Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent a152c843
......@@ -20,6 +20,11 @@ int main(int argc, char **argv)
return 1;
pid = fork();
if (pid == 0) {
if (setsid() == -1) {
fprintf(stderr, "setsid: %m\n");
return 1;
}
if (mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, NULL)) {
fprintf(stderr, "mount(/, S_REC | MS_PRIVATE)): %m");
return 1;
......
Markdown is supported
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