[CRIU] [PATCH] seize: collect_pstree -- Add missing error sign return
Cyrill Gorcunov
gorcunov at openvz.org
Fri Aug 26 05:54:00 PDT 2016
From: Cyrill Gorcunov <gorcunov at virtuozzo.com>
If we can't freeze process don't forget to return
error sign, otherwise we continue operating over
nonfrozen processes, leading into various errors.
Signed-off-by: Cyrill Gorcunov <gorcunov at virtuozzo.com>
---
criu/seize.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/criu/seize.c b/criu/seize.c
index e19fbfec3d78..e1e805a151db 100644
--- a/criu/seize.c
+++ b/criu/seize.c
@@ -765,8 +765,10 @@ int collect_pstree(void)
if (ret < 0)
goto err;
- if (opts.freeze_cgroup && freezer_wait_processes())
+ if (opts.freeze_cgroup && freezer_wait_processes()) {
+ ret = -1;
goto err;
+ }
ret = 0;
timing_stop(TIME_FREEZING);
--
2.7.4
More information about the CRIU
mailing list