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

Cyrill Gorcunov gorcunov at openvz.org
Thu Mar 14 12:56:33 EDT 2013


Current running task is always TASK_ALIVE, mark it this way.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 image.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/image.c b/image.c
index 2bea4ef..7a5e1d8 100644
--- a/image.c
+++ b/image.c
@@ -71,6 +71,7 @@ int write_img_inventory(void)
 	he.fdinfo_per_id = true;
 	he.has_fdinfo_per_id = true;
 
+	crt.state = TASK_ALIVE;
 	crt.pid.real = getpid();
 	if (get_task_ids(&crt))
 		return -1;
-- 
1.8.1.4



More information about the CRIU mailing list