Commit 06e25b18 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

seize: collect_pstree -- Add missing error sign return

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: 's avatarCyrill Gorcunov <gorcunov@virtuozzo.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 40a7f385
......@@ -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);
......
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