2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-28 21:07:43 +00:00

parasite: remove useless check from parasite_stop_on_syscall() (v2)

We have the same check a few lines above.

v2: fix the subject
Signed-off-by: Andrey Vagin <avagin@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Andrey Vagin 2014-09-17 12:10:00 +04:00 committed by Pavel Emelyanov
parent 7fa98a30bc
commit 232cb4b34b

View File

@ -912,10 +912,6 @@ int parasite_stop_on_syscall(int tasks, const int sys_nr)
} }
pr_debug("%d was trapped\n", pid); pr_debug("%d was trapped\n", pid);
if (!WIFSTOPPED(status)) {
pr_err("%d\n", status);
return -1;
}
ret = ptrace_get_regs(pid, &regs); ret = ptrace_get_regs(pid, &regs);
if (ret) { if (ret) {
pr_perror("ptrace"); pr_perror("ptrace");