[CRIU] Re: [PATCH cr 5/8] restore: restore sids of tasks, which have been reparented to init

Cyrill Gorcunov gorcunov at openvz.org
Wed Jun 13 07:57:16 EDT 2012


On Wed, Jun 13, 2012 at 03:35:35PM +0400, Andrey Vagin wrote:
> 
> Signed-off-by: Andrey Vagin <avagin at openvz.org>
> ---
>  cr-restore.c |   82 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>  1 files changed, 82 insertions(+), 0 deletions(-)
> 

> diff --git a/cr-restore.c b/cr-restore.c
> index 7db1d78..2e0654d 100644
> --- a/cr-restore.c
> +++ b/cr-restore.c
> @@ -172,6 +172,85 @@ static int prepare_pstree(void)
>  	return ret;
>  }
>  
> +static int prepare_pstree_ids(void)
> +{
> +	struct pstree_item *pi, *ci, *tmp, *t;
> +	LIST_HEAD(helpers);

And Andrew, if you'll be updating this patch, can we give
the variables some sane names? Say

	struct pstree_item *item, *children, *helper, *t;

or something? All this pi/ci sounds pretty inconvenient
from my pov.

	Cyrill


More information about the CRIU mailing list