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:
committed by
Andrei Vagin
parent
d8d3d8d81f
commit
02fcb99c39
@@ -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;
|
||||
|
Reference in New Issue
Block a user