mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 06:15:24 +00:00
zdtm: Add SIGCHLD flag to userns-leaked-sock test
wait() waits children created using SIGCHLD signal only. 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
181ea542e3
commit
627ca7d13d
@@ -127,7 +127,7 @@ int main(int argc, char **argv)
|
||||
|
||||
{
|
||||
char stack;
|
||||
pid = clone(child_fn, &stack - 256, CLONE_NEWUSER|CLONE_NEWNET|CLONE_NEWPID, (void *)(long)sk);
|
||||
pid = clone(child_fn, &stack - 256, CLONE_NEWUSER|CLONE_NEWNET|CLONE_NEWPID|SIGCHLD, (void *)(long)sk);
|
||||
if (pid == -1) {
|
||||
fail("clone");
|
||||
return 1;
|
||||
|
Reference in New Issue
Block a user