Commit 3bba868e authored by Cyrill Gorcunov's avatar Cyrill Gorcunov

sockets: Allow to reuse fd in run_accept_jobs

Sockets are special and we reuse fds in accept jobs.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Acked-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 81d91983
...@@ -470,7 +470,7 @@ static int run_accept_jobs(void) ...@@ -470,7 +470,7 @@ static int run_accept_jobs(void)
return -1; return -1;
} }
if (reopen_fd_as(aj->fd, fd)) if (reopen_fd_as_nocheck(aj->fd, fd))
return -1; return -1;
unix_show_job("Fin acc", aj->fd, -1); unix_show_job("Fin acc", aj->fd, -1);
...@@ -802,6 +802,7 @@ err: ...@@ -802,6 +802,7 @@ err:
int prepare_sockets(int pid) int prepare_sockets(int pid)
{ {
pr_info("%d: Opening sockets\n", pid);
return prepare_unix_sockets(pid); return prepare_unix_sockets(pid);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment