[CRIU] [PATCH] ids: Don't forget to setup task state in write_img_inventory

Cyrill Gorcunov gorcunov at openvz.org
Thu Mar 14 13:21:31 EDT 2013


On Thu, Mar 14, 2013 at 09:06:04PM +0400, Pavel Emelyanov wrote:
> On 03/14/2013 08:56 PM, Cyrill Gorcunov wrote:
> > Current running task is always TASK_ALIVE, mark it this way.
> 
> What for? The crt thing doesn't go to any image.

get_task_ids
	if (item->state != TASK_DEAD) {
		ret = dump_task_kobj_ids(item);
		if (ret)
			goto err_free;

But in write_img_inventory before get_task_ids caller
we set all pstree item field to zero. So lets be consistent
and mark task as alive earlier.

	Cyrill


More information about the CRIU mailing list