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: Andrey Vagin <avagin@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Andrey Vagin 2014-08-16 14:39:00 +04:00 committed by Pavel Emelyanov
parent a152c843b8
commit 513b0dc3e0

View file

@ -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;