From 3bba868e92c8be31dc4f47b470694ca4911d0ee2 Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Fri, 13 Jan 2012 11:40:26 +0400 Subject: [PATCH] sockets: Allow to reuse fd in run_accept_jobs Sockets are special and we reuse fds in accept jobs. Signed-off-by: Cyrill Gorcunov Acked-by: Pavel Emelyanov --- sockets.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sockets.c b/sockets.c index 66912a3c4..a773ed1d5 100644 --- a/sockets.c +++ b/sockets.c @@ -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); }