From 232cb4b34b51b2d4e566c634e161d89e72a2904c Mon Sep 17 00:00:00 2001 From: Andrey Vagin Date: Wed, 17 Sep 2014 12:10:00 +0400 Subject: [PATCH] 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 Signed-off-by: Pavel Emelyanov --- parasite-syscall.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/parasite-syscall.c b/parasite-syscall.c index 6f56617a4..f514b3c89 100644 --- a/parasite-syscall.c +++ b/parasite-syscall.c @@ -912,10 +912,6 @@ int parasite_stop_on_syscall(int tasks, const int sys_nr) } pr_debug("%d was trapped\n", pid); - if (!WIFSTOPPED(status)) { - pr_err("%d\n", status); - return -1; - } ret = ptrace_get_regs(pid, ®s); if (ret) { pr_perror("ptrace");