Commit 434879c0 authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

restore: clear breakpoints only for alive tasks

We don't set breakpoints for zombies.
Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 21d1b2fd
......@@ -1591,9 +1591,12 @@ static int clear_breakpoints()
struct pstree_item *item;
int ret = 0, i;
for_each_pstree_item(item)
for_each_pstree_item(item) {
if (!task_alive(item))
continue;
for (i = 0; i < item->nr_threads; i++)
ret |= ptrace_flush_breakpoints(item->threads[i].real);
}
return ret;
}
......
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