[CRIU] [PATCH] zdtm: Add SIGCHLD flag to userns-leaked-sock test
Andrei Vagin
avagin at virtuozzo.com
Fri Jun 30 03:44:21 MSK 2017
Applied, thanks
On Thu, Jun 29, 2017 at 03:19:13PM +0300, Kirill Tkhai wrote:
> wait() waits children created using SIGCHLD signal only.
> Add it.
>
> Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
> ---
> test/zdtm/static/userns-leaked-sock.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/test/zdtm/static/userns-leaked-sock.c b/test/zdtm/static/userns-leaked-sock.c
> index 8a84efe6a..673eb9088 100644
> --- a/test/zdtm/static/userns-leaked-sock.c
> +++ b/test/zdtm/static/userns-leaked-sock.c
> @@ -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;
>
More information about the CRIU
mailing list