[Devel] [PATCH criu-stable] memory/pid-reuse: allow no stats image
Pavel Tikhomirov
ptikhomirov at virtuozzo.com
Fri Mar 23 12:13:46 MSK 2018
Signed-off-by: Pavel Tikhomirov <ptikhomirov at virtuozzo.com>
---
criu/mem.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/criu/mem.c b/criu/mem.c
index 8d56b729a..a1876dfcd 100644
--- a/criu/mem.c
+++ b/criu/mem.c
@@ -313,13 +313,7 @@ static int detect_pid_reuse(struct pstree_item *item,
return -1;
}
- if (!parent_se) {
- pr_perror("No parent stats, for real error, please, " \
- "check warnings in get_parent_stats");
- return -1;
- }
-
- if (parent_se->dump->has_dump_uptime) {
+ if (parent_se && parent_se->dump->has_dump_uptime) {
unsigned long long dump_ticks;
dump_ticks = parent_se->dump->dump_uptime/(USEC_PER_SEC/tps);
--
2.14.3
More information about the Devel
mailing list