[CRIU] Re: [PATCH cr 1/2] restore: remove old logic about task_entry
Cyrill Gorcunov
gorcunov at openvz.org
Wed Feb 1 05:08:51 EST 2012
On Wed, Feb 01, 2012 at 01:05:10PM +0300, Andrey Vagin wrote:
>
> Signed-off-by: Andrey Vagin <avagin at openvz.org>
> ---
>
> static struct shmem_id *shmem_ids;
> @@ -372,6 +370,12 @@ static int prepare_shared(int ps_fd)
>
> pr_info("Preparing info about shared resources\n");
>
> + task_pids = malloc(PAGE_SIZE);
We have xmalloc for such cases, though this nit could be fixed
on top then. Other than that looks goot to me.
Cyrill
More information about the CRIU
mailing list