2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 14:25:49 +00:00

flock: Don't hide image read error on flocks restore

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Pavel Emelyanov
2014-08-06 21:08:16 +04:00
parent 2c31147f9d
commit 1e3ae669fa

View File

@@ -241,14 +241,10 @@ static int restore_file_locks(int pid)
ret = restore_file_lock(fle);
file_lock_entry__free_unpacked(fle, NULL);
if (ret)
goto err;
break;
}
close_safe(&fd);
return 0;
err:
close_safe(&fd);
return ret;
}