mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-29 13:28:27 +00:00
sockets: Allow to reuse fd in run_accept_jobs
Sockets are special and we reuse fds in accept jobs. Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Acked-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
parent
81d91983d3
commit
3bba868e92
@ -470,7 +470,7 @@ static int run_accept_jobs(void)
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (reopen_fd_as(aj->fd, fd))
|
||||
if (reopen_fd_as_nocheck(aj->fd, fd))
|
||||
return -1;
|
||||
|
||||
unix_show_job("Fin acc", aj->fd, -1);
|
||||
@ -802,6 +802,7 @@ err:
|
||||
|
||||
int prepare_sockets(int pid)
|
||||
{
|
||||
pr_info("%d: Opening sockets\n", pid);
|
||||
return prepare_unix_sockets(pid);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user