[CRIU] [PATCH] zdtm: Add SIGCHLD to clone flags in pidns01

Andrei Vagin avagin at virtuozzo.com
Wed Jun 14 01:41:43 MSK 2017


Applied, thanks
On Fri, Jun 09, 2017 at 10:41:53AM +0300, Kirill Tkhai wrote:
> Plain wait() waits only children created with SIGCHLD flag.
> Add it.
> 
> Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
> ---
>  test/zdtm/static/pidns01.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/test/zdtm/static/pidns01.c b/test/zdtm/static/pidns01.c
> index fe8d435a3..70137edc4 100644
> --- a/test/zdtm/static/pidns01.c
> +++ b/test/zdtm/static/pidns01.c
> @@ -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;
> 


More information about the CRIU mailing list