2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 06:15:24 +00:00

zdtm: Add SIGCHLD to clone flags in pidns01

Plain wait() waits only children created with SIGCHLD flag.
Add it.

Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
This commit is contained in:
Kirill Tkhai
2017-06-09 10:41:53 +03:00
committed by Andrei Vagin
parent d8d3d8d81f
commit 02fcb99c39

View File

@@ -116,7 +116,7 @@ int main(int argc, char **argv)
}
futex_init(futex);
pid = clone(child_fn, stack + sizeof(stack), CLONE_NEWUSER|CLONE_NEWPID|CLONE_NEWNET, NULL);
pid = clone(child_fn, stack + sizeof(stack), CLONE_NEWUSER|CLONE_NEWPID|CLONE_NEWNET|SIGCHLD, NULL);
if (pid < 0) {
fail("clone");
return 1;