mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 14:25:49 +00:00
fdinfo: fd_is_special helper for maps and cwd
Signed-off-by: Pavel Emelyanov <xemul@parallels.com> Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
This commit is contained in:
committed by
Cyrill Gorcunov
parent
e2d8aec7f5
commit
d1b3fd09b3
7
files.c
7
files.c
@@ -178,10 +178,9 @@ int prepare_fd_pid(int pid)
|
||||
if (e.len)
|
||||
lseek(fdinfo_fd, e.len, SEEK_CUR);
|
||||
|
||||
if (e.type == FDINFO_MAP)
|
||||
continue;
|
||||
if (e.addr == FDINFO_CWD)
|
||||
if (fd_is_special(&e))
|
||||
continue;
|
||||
|
||||
if (collect_fd(pid, &e))
|
||||
return -1;
|
||||
}
|
||||
@@ -534,7 +533,7 @@ int prepare_fds(int pid)
|
||||
goto err;
|
||||
continue;
|
||||
}
|
||||
} else if (fe.type == FDINFO_MAP || fe.addr == FDINFO_CWD) {
|
||||
} else if (fd_is_special(&fe)) {
|
||||
lseek(fdinfo_fd, fe.len, SEEK_CUR);
|
||||
continue;
|
||||
}
|
||||
|
Reference in New Issue
Block a user