[CRIU] [PATCH 09/12] parasite-syscall: Log if can't cure on failed infection
Dmitry Safonov
dima at arista.com
Sun Nov 10 01:20:42 MSK 2019
Maybe expected, hopefully never happens - let's warn in any case.
Signed-off-by: Dmitry Safonov <dima at arista.com>
---
criu/parasite-syscall.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/criu/parasite-syscall.c b/criu/parasite-syscall.c
index b9788a4c288a..e5a8194e581b 100644
--- a/criu/parasite-syscall.c
+++ b/criu/parasite-syscall.c
@@ -565,7 +565,8 @@ struct parasite_ctl *parasite_infect_seized(pid_t pid, struct pstree_item *item,
parasite_ensure_args_size(aio_rings_args_size(vma_area_list));
if (compel_infect(ctl, item->nr_threads, parasite_args_size) < 0) {
- compel_cure(ctl);
+ if (compel_cure(ctl))
+ pr_warn("Can't cure failed infection\n");
return NULL;
}
--
2.24.0
More information about the CRIU
mailing list