Commit c861f61e authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

service: exit if accept() returned an error

I don't know a reason, when accept() fails once and then goes back to
normal work.

Cc: Ruslan Kuprieiev <kupruser@gmail.com>
Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 34772230
......@@ -282,7 +282,7 @@ int cr_service(bool daemon_mode)
&client_addr_len);
if (cr_service_client->sk_fd == -1) {
pr_perror("Can't accept connection.");
continue;
goto err;
}
pr_info("Connected.\n");
......
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