[CRIU] [PATCH 2/3] zdtm: Make pthread00 to wait with 0

Andrew Vagin avagin at parallels.com
Fri Nov 23 04:51:58 EST 2012


Acked-by: Andrew Vagin <avagin at parallels.com>

On Fri, Nov 23, 2012 at 01:49:05PM +0400, Cyrill Gorcunov wrote:
> P_ALL is an argument for waitid, not waitpid.
> 
> Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
> ---
>  test/zdtm/live/static/pthread00.c |    6 +++---
>  1 files changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/test/zdtm/live/static/pthread00.c b/test/zdtm/live/static/pthread00.c
> index 20d200a..224d855 100644
> --- a/test/zdtm/live/static/pthread00.c
> +++ b/test/zdtm/live/static/pthread00.c
> @@ -95,7 +95,7 @@ static void *ff1(void *map)
>  	}
>  
>  	test_msg("Waiting for %d\n", pid);
> -	waitpid(pid, &status, P_ALL);
> +	waitpid(pid, &status, 0);
>  
>  	return NULL;
>  }
> @@ -159,7 +159,7 @@ static void *f1(void *map)
>  
>  	pthread_join(th, NULL);
>  	test_msg("Waiting for %d\n", pid);
> -	waitpid(pid, &status, P_ALL);
> +	waitpid(pid, &status, 0);
>  
>  	return NULL;
>  }
> @@ -218,7 +218,7 @@ static void *f2(void *map)
>  	}
>  
>  	test_msg("Waiting for %d\n", pid);
> -	waitpid(pid, &status, P_ALL);
> +	waitpid(pid, &status, 0);
>  
>  	return NULL;
>  }
> -- 
> 1.7.7.6
> 


More information about the CRIU mailing list