mirror of
https://github.com/checkpoint-restore/criu
synced 2025-09-01 14:55:39 +00:00
seize: do not overwrite exit code from failpath
Signed-off-by: Liu Hua <weldonliu@tencent.com>
This commit is contained in:
@@ -535,8 +535,10 @@ static int freeze_processes(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
err:
|
err:
|
||||||
if (exit_code == 0 || origin_freezer_state == THAWED)
|
if (exit_code == 0 || origin_freezer_state == THAWED) {
|
||||||
exit_code = freezer_write_state(fd, THAWED);
|
if (freezer_write_state(fd, THAWED))
|
||||||
|
exit_code = -1;
|
||||||
|
}
|
||||||
|
|
||||||
if (close(fd)) {
|
if (close(fd)) {
|
||||||
pr_perror("Unable to thaw tasks");
|
pr_perror("Unable to thaw tasks");
|
||||||
|
Reference in New Issue
Block a user