[CRIU] [PATCH 4/8] dump: Allocate and free ThreadSasEntry

Pavel Emelyanov xemul at parallels.com
Tue Jul 2 07:23:28 EDT 2013


On 06/18/2013 10:06 AM, Cyrill Gorcunov wrote:
> 
> Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
> ---
>  pstree.c | 8 ++++++++
>  1 file changed, 8 insertions(+)
> 


> @@ -30,12 +31,19 @@ CoreEntry *core_entry_alloc(int alloc_thread_info, int alloc_tc)
>  {
>  	CoreEntry *core;
>  	TaskCoreEntry *tc;
> +	ThreadSasEntry *sas;
>  
>  	core = xmalloc(sizeof(*core));
>  	if (!core)
>  		return NULL;
>  	core_entry__init(core);
>  
> +	sas = xmalloc(sizeof(*sas));
> +	if (!sas)
> +		goto err;
> +	thread_sas_entry__init(sas);
> +	core->sas = sas;

Why do zombies need this thing?

> +
>  	core->mtype = CORE_ENTRY__MARCH;
>  
>  	if (alloc_thread_info) {


More information about the CRIU mailing list