mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-29 13:28:27 +00:00
shmem: Remove pid argument of shmem_wait_and_open()
It's unused and it's rewritten in shmem_wait_and_open(), and it just confuses a reader. So, kill it. Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
This commit is contained in:
parent
1ea1fdde45
commit
3842c6341d
@ -436,7 +436,7 @@ int collect_shmem(int pid, struct vma_area *vma)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int shmem_wait_and_open(int pid, struct shmem_info *si, VmaEntry *vi)
|
static int shmem_wait_and_open(struct shmem_info *si, VmaEntry *vi)
|
||||||
{
|
{
|
||||||
char path[128];
|
char path[128];
|
||||||
int ret;
|
int ret;
|
||||||
@ -515,7 +515,7 @@ static int open_shmem(int pid, struct vma_area *vma)
|
|||||||
BUG_ON(si->pid == SYSVIPC_SHMEM_PID);
|
BUG_ON(si->pid == SYSVIPC_SHMEM_PID);
|
||||||
|
|
||||||
if (si->pid != pid)
|
if (si->pid != pid)
|
||||||
return shmem_wait_and_open(pid, si, vi);
|
return shmem_wait_and_open(si, vi);
|
||||||
|
|
||||||
if (si->fd != -1) {
|
if (si->fd != -1) {
|
||||||
f = dup(si->fd);
|
f = dup(si->fd);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user