[CRIU] [PATCH 08/12] parasite: Initialize tid_state_s::id on parasite bootstrap

Pavel Emelyanov xemul at parallels.com
Fri Mar 1 13:53:04 EST 2013


On 02/28/2013 07:35 PM, Cyrill Gorcunov wrote:
> 
> Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
> ---
>  include/parasite.h | 1 +
>  parasite-syscall.c | 6 ++++++
>  pie/parasite.c     | 7 ++++---
>  3 files changed, 11 insertions(+), 3 deletions(-)
> 


> int parasite_init_threads_seized(struct parasite_ctl *ctl, struct pstree_item *item)
>  {
> +	struct parasite_init_args *args;
>  	int ret = 0, i;
>  
> +	args = parasite_args(ctl, struct parasite_init_args);
> +	memzero(args, sizeof(*args));

What for? (a hint -- "not to shit pants by chance" is bad answer).

> +



More information about the CRIU mailing list