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

bfd: Don't flush read-only images

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Pavel Emelyanov
2014-10-29 15:44:00 +04:00
parent 1ef5ca8235
commit 2e91a9c814
4 changed files with 9 additions and 13 deletions

View File

@@ -313,7 +313,7 @@ int parse_smaps(pid_t pid, struct vm_area_list *vma_area_list, bool use_map_file
if (f.fd < 0)
goto err_n;
if (bfdopen(&f))
if (bfdopen(&f, O_RDONLY))
goto err_n;
if (use_map_files) {
@@ -1158,7 +1158,7 @@ static int parse_fdinfo_pid_s(int pid, int fd, int type,
return -1;
}
if (bfdopen(&f))
if (bfdopen(&f, O_RDONLY))
return -1;
while (1) {
@@ -1613,7 +1613,7 @@ int parse_posix_timers(pid_t pid, struct proc_posix_timers_stat *args)
return -1;
}
if (bfdopen(&f))
if (bfdopen(&f, O_RDONLY))
return -1;
while (1) {