Commit d66d5cdd authored by Mike Rapoport's avatar Mike Rapoport Committed by Andrei Vagin

lazy-dump: do not start page server if there were errors

Currently, lazy dump starts page server regardless of errors that might
have been encountered at earlier stages. Fix it.
Signed-off-by: 's avatarMike Rapoport <rppt@linux.vnet.ibm.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 7999c842
...@@ -1677,7 +1677,7 @@ static int cr_dump_finish(int ret) ...@@ -1677,7 +1677,7 @@ static int cr_dump_finish(int ret)
clean_cr_time_mounts(); clean_cr_time_mounts();
} }
if (opts.lazy_pages) if (!ret && opts.lazy_pages)
ret = cr_lazy_mem_dump(); ret = cr_lazy_mem_dump();
arch_set_thread_regs(root_item); arch_set_thread_regs(root_item);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment