[CRIU] [PATCH 1/3] parasite: remove useless check from parasite_stop_on_syscall() (v2)

Andrey Vagin avagin at openvz.org
Wed Sep 17 01:10:14 PDT 2014


We have the same check a few lines above.

v2: fix the subject
Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
 parasite-syscall.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/parasite-syscall.c b/parasite-syscall.c
index 6f56617..f514b3c 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, &regs);
 		if (ret) {
 			pr_perror("ptrace");
-- 
1.9.3



More information about the CRIU mailing list