2
0
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:
Cyrill Gorcunov 2012-01-13 11:40:26 +04:00
parent 81d91983d3
commit 3bba868e92

View File

@ -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);
}