Commit 5b56e20d authored by Andrew Vagin's avatar Andrew Vagin Committed by Pavel Emelyanov

ptrace: skip ptraced zombies

It's posiable that criu is able to attach to a process
and then it becomes a zombie.

$ while :; do bash ./zdtm.sh -C --freeze-cgroup /sys/fs/cgroup/freezer/test transition/fork || break; done
...
(00.000978) Error (ptrace.c:154): SEIZE 13666: task not stopped after seize
Signed-off-by: 's avatarAndrew Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent dc55d238
...@@ -131,7 +131,7 @@ try_again: ...@@ -131,7 +131,7 @@ try_again:
goto err; goto err;
} }
if (ret < 0) { if (ret < 0 || WIFEXITED(status) || WIFSIGNALED(status)) {
if (cr.state != 'Z') { if (cr.state != 'Z') {
if (pid == getpid()) if (pid == getpid())
pr_err("The criu itself is within dumped tree.\n"); pr_err("The criu itself is within dumped tree.\n");
......
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