Commit f43ac064 authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

restore: save a task state on pstree_item

Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 5273ae90
......@@ -905,7 +905,9 @@ static inline int fork_with_pid(struct pstree_item *item)
if (check_core(ca.core, item))
return -1;
if (ca.core->tc->task_state == TASK_DEAD)
item->state = ca.core->tc->task_state;
if (item->state == TASK_DEAD)
item->parent->rst->nr_zombies++;
} else
ca.core = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment