mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
seize: do not overwrite exit code from failpath
Signed-off-by: Liu Hua <weldonliu@tencent.com>
This commit is contained in:
parent
16f1c147c8
commit
debc9c16cc
1 changed files with 4 additions and 2 deletions
|
|
@ -535,8 +535,10 @@ static int freeze_processes(void)
|
|||
}
|
||||
|
||||
err:
|
||||
if (exit_code == 0 || origin_freezer_state == THAWED)
|
||||
exit_code = freezer_write_state(fd, THAWED);
|
||||
if (exit_code == 0 || origin_freezer_state == THAWED) {
|
||||
if (freezer_write_state(fd, THAWED))
|
||||
exit_code = -1;
|
||||
}
|
||||
|
||||
if (close(fd)) {
|
||||
pr_perror("Unable to thaw tasks");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue