mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-18 00:58:31 +00:00
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:
parent
a152c843b8
commit
513b0dc3e0
1 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue