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

ptrace: check that process is stopped by SIGTRAP

All other states are unexpected.
Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent b43c29bb
......@@ -747,6 +747,11 @@ static int parasite_fini_seized(struct parasite_ctl *ctl)
return -1;
}
if (!WIFSTOPPED(status) || WSTOPSIG(status) != SIGTRAP) {
pr_err("Task is in unexpected state: %x\n", status);
return -1;
}
pr_debug("%d was trapped\n", pid);
if (!WIFSTOPPED(status)) {
pr_err("%d\n", status);
......
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